Coggle requires JavaScript to display documents.
(List<String> list) -> list.isEmpty()
() -> new Apple(10)
(Apple a) -> { System.out.println(a.getWeight()); }
(String s) -> s.length()
(inta,intb)->a*b
(Apple a1, Apple a2) -> a1.getWeight().compareTo(a2.getWeight())
arg -> function body
functional interface
Predicate<T>
boolean test(T t)
Consumer<T>
void accept(T t)
Function<T,R>
R apply(T t)
Supplier<T>
T get()
@FunctionalInterface
java.lang.Object
static
default
File[] hiddenFiles = new File(".").listFiles(new FileFilter() { public boolean accept(File file) { return file.isHidden(); } }); File[] hiddenFiles = new File(".").listFiles(File::isHidden);
(arg0, rest) -> arg0.instanceMethod(rest)
ClassName::instanceMethod
(args) -> expr.instanceMethod(args)
expr::instanceMethod
(args) -> ClassName.staticMethod(args)
ClassName::staticMethod