-
public final class UtilityFunctions
Utility functions for internal use that we don't want part of the public API.
-
-
Method Summary
Modifier and Type Method Description static <T> Func1<out Object, Boolean>
alwaysTrue()
Returns a function that always returns {@code true}
.static <T> Func1<out Object, Boolean>
alwaysFalse()
Returns a function that always returns {@code false}
.static <T> Func1<T, T>
identity()
Returns a function that always returns the Object it is passed. -
-
Method Detail
-
alwaysTrue
static <T> Func1<out Object, Boolean> alwaysTrue()
Returns a function that always returns
{@code true}
.
-
alwaysFalse
static <T> Func1<out Object, Boolean> alwaysFalse()
Returns a function that always returns
{@code false}
.
-
-
-
-