List of usage examples for java.util.function LongUnaryOperator compose
default LongUnaryOperator compose(LongUnaryOperator before)
From source file:Main.java
public static void main(String[] args) { LongUnaryOperator i = (l) -> -l; LongUnaryOperator j = (l) -> l / 2; System.out.println(i.compose(j).applyAsLong(Long.MAX_VALUE)); }