List of usage examples for java.util.function LongUnaryOperator identity
static LongUnaryOperator identity()
From source file:Main.java
public static void main(String[] args) { LongUnaryOperator i = LongUnaryOperator.identity(); System.out.println(i.applyAsLong(Long.MAX_VALUE)); }
From source file:org.briljantframework.array.AbstractLongArray.java
@Override public long reduce(long identity, LongBinaryOperator reduce) { return reduce(identity, reduce, LongUnaryOperator.identity()); }