use of java.util.function.IntBinaryOperator in project checkstyle by checkstyle.
the class Nullable method instructions.
public void instructions() {
// used to let inputs compile
boolean b = Math.random() > 0;
int vint;
Object o = null;
List<String> vlist;
vlist = new ArrayList<String>();
Supplier<?> s;
// annotations
Map.@Nullable Entry e;
String str = (@Nullable String) "";
(new Inner3()).<@Nullable String>m();
// method reference
IntBinaryOperator ibo = Math::max;
s = InputRegressionJava8Class1::new;
s = Inner1.Inner2<String>::new;
// lambda
Runnable r1 = () -> m();
Runnable r2 = () -> {
m();
};
Collections.sort(vlist, (l, r) -> l == r ? 0 : 1);
Predicate<?> t = (b) ? null : object -> o.equals(object);
Double mPi = Math.PI;
}
Aggregations