List of usage examples for java.lang Long MAX_VALUE
long MAX_VALUE
To view the source code for java.lang Long MAX_VALUE.
Click Source Link
From source file:Main.java
public static void main(String[] args) { LongStream b = LongStream.of(1L, 2L, Long.MAX_VALUE, Long.MIN_VALUE); OptionalDouble o = b.average(); if (o.isPresent()) { System.out.println(o.getAsDouble()); } else {/*from w w w .jav a2s . co m*/ System.out.println("no value"); } }
From source file:Main.java
public static void main(String[] args) { LongPredicate i = (l) -> l > 0; System.out.println(i.negate().test(Long.MAX_VALUE)); }
From source file:Main.java
public static void main(String[] args) { LongUnaryOperator i = (l) -> -l; System.out.println(i.applyAsLong(Long.MAX_VALUE)); }
From source file:Main.java
public static void main(String[] args) { LongToIntFunction i = (l) -> (int) l; System.out.println(i.applyAsInt(Long.MAX_VALUE)); }
From source file:Main.java
public static void main(String[] args) { LongBinaryOperator i = (x, y) -> x / y; System.out.println(i.applyAsLong(Long.MAX_VALUE, Long.MAX_VALUE)); }
From source file:Main.java
public static void main(String[] args) { LongConsumer i = (l) -> System.out.println(l); ; i.andThen(i).accept(Long.MAX_VALUE); }
From source file:Main.java
public static void main(String[] args) { LongFunction<String> i = (l) -> Long.toString(l); System.out.println(i.apply(Long.MAX_VALUE)); }
From source file:Main.java
public static void main(String[] args) { LongToDoubleFunction i = (l) -> Math.sin(l); System.out.println(i.applyAsDouble(Long.MAX_VALUE)); }
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:Main.java
public static void main(String[] args) { ObjLongConsumer<String> i = (s, d) -> System.out.println(s + d); i.accept("java2s.com ", Long.MAX_VALUE); }