public final class UtilityFunctions extends Object
Modifier and Type | Method and Description |
---|---|
static <T> Func1<? super T,Boolean> |
alwaysFalse()
Returns a function that always returns
false . |
static <T> Func1<? super T,Boolean> |
alwaysTrue()
Returns a function that always returns
true . |
static <T> Func1<T,T> |
identity()
Returns a function that always returns the Object it is passed.
|
public static <T> Func1<? super T,Boolean> alwaysTrue()
true
.T
- the value typeFunc1
that accepts an Object and returns the Boolean true
public static <T> Func1<? super T,Boolean> alwaysFalse()
false
.T
- the value typeFunc1
that accepts an Object and returns the Boolean false
Copyright © 2017. All rights reserved.