org.op4j.functions
Class FnObject

Object
  extended by org.op4j.functions.FnObject

public final class FnObject
extends Object

Since:
1.0
Author:
Daniel Fernández, Soraya Sánchez

Method Summary
static Function<Object,Boolean> between(byte min, byte max)
           Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
static Function<Object,Boolean> between(double min, double max)
           Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
static Function<Object,Boolean> between(float min, float max)
           Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
static Function<Object,Boolean> between(int min, int max)
           Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
static Function<Object,Boolean> between(long min, long max)
           Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
static Function<Object,Boolean> between(Object min, Object max)
           Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
static Function<Object,Boolean> between(short min, short max)
           Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0.
static Function<Object,Boolean> eq(boolean object)
           Determines whether the target object and the specified object are equal by calling the equals method on the target object.
static Function<Object,Boolean> eq(byte object)
           Determines whether the target object and the specified object are equal by calling the equals method on the target object.
static Function<Object,Boolean> eq(double object)
           Determines whether the target object and the specified object are equal by calling the equals method on the target object.
static Function<Object,Boolean> eq(float object)
           Determines whether the target object and the specified object are equal by calling the equals method on the target object.
static Function<Object,Boolean> eq(int object)
           Determines whether the target object and the specified object are equal by calling the equals method on the target object.
static Function<Object,Boolean> eq(long object)
           Determines whether the target object and the specified object are equal by calling the equals method on the target object.
static Function<Object,Boolean> eq(Object object)
           Determines whether the target object and the specified object are equal by calling the equals method on the target object.
static Function<Object,Boolean> eq(short object)
           Determines whether the target object and the specified object are equal by calling the equals method on the target object.
static
<X> Function<X,Boolean>
eqBy(IFunction<X,?> by, boolean object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
static
<X> Function<X,Boolean>
eqBy(IFunction<X,?> by, byte object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
static
<X> Function<X,Boolean>
eqBy(IFunction<X,?> by, double object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
static
<X> Function<X,Boolean>
eqBy(IFunction<X,?> by, float object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
static
<X> Function<X,Boolean>
eqBy(IFunction<X,?> by, int object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
static
<X> Function<X,Boolean>
eqBy(IFunction<X,?> by, long object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
static
<X> Function<X,Boolean>
eqBy(IFunction<X,?> by, Object object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
static
<X> Function<X,Boolean>
eqBy(IFunction<X,?> by, short object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.
static Function<Object,Boolean> eqValue(boolean object)
           Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0.
static Function<Object,Boolean> eqValue(byte object)
           Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0.
static Function<Object,Boolean> eqValue(double object)
           Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0.
static Function<Object,Boolean> eqValue(float object)
           Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0.
static Function<Object,Boolean> eqValue(int object)
           Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0.
static Function<Object,Boolean> eqValue(long object)
           Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0.
static Function<Object,Boolean> eqValue(Object object)
           Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0.
static Function<Object,Boolean> eqValue(short object)
           Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0.
static
<X> Function<X,Boolean>
eqValueBy(IFunction<X,?> by, boolean object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0.
static
<X> Function<X,Boolean>
eqValueBy(IFunction<X,?> by, byte object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0.
static
<X> Function<X,Boolean>
eqValueBy(IFunction<X,?> by, double object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0.
static
<X> Function<X,Boolean>
eqValueBy(IFunction<X,?> by, float object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0.
static
<X> Function<X,Boolean>
eqValueBy(IFunction<X,?> by, int object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0.
static
<X> Function<X,Boolean>
eqValueBy(IFunction<X,?> by, long object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0.
static
<X> Function<X,Boolean>
eqValueBy(IFunction<X,?> by, Object object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0.
static
<X> Function<X,Boolean>
eqValueBy(IFunction<X,?> by, short object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0.
static Function<Object,Boolean> greaterOrEqTo(byte object)
           Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0.
static Function<Object,Boolean> greaterOrEqTo(double object)
           Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0.
static Function<Object,Boolean> greaterOrEqTo(float object)
           Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0.
static Function<Object,Boolean> greaterOrEqTo(int object)
           Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0.
static Function<Object,Boolean> greaterOrEqTo(long object)
           Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0.
static Function<Object,Boolean> greaterOrEqTo(Object object)
           Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0.
static Function<Object,Boolean> greaterOrEqTo(short object)
           Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0.
static
<X> Function<X,Boolean>
greaterOrEqToBy(IFunction<X,?> by, byte object)
           Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0.
static
<X> Function<X,Boolean>
greaterOrEqToBy(IFunction<X,?> by, double object)
           Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0.
static
<X> Function<X,Boolean>
greaterOrEqToBy(IFunction<X,?> by, float object)
           Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0.
static
<X> Function<X,Boolean>
greaterOrEqToBy(IFunction<X,?> by, int object)
           Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0.
static
<X> Function<X,Boolean>
greaterOrEqToBy(IFunction<X,?> by, long object)
           Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0.
static
<X> Function<X,Boolean>
greaterOrEqToBy(IFunction<X,?> by, Object object)
           Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0.
static
<X> Function<X,Boolean>
greaterOrEqToBy(IFunction<X,?> by, short object)
           Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0.
static Function<Object,Boolean> greaterThan(byte object)
           Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0.
static Function<Object,Boolean> greaterThan(double object)
           Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0.
static Function<Object,Boolean> greaterThan(float object)
           Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0.
static Function<Object,Boolean> greaterThan(int object)
           Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0.
static Function<Object,Boolean> greaterThan(long object)
           Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0.
static Function<Object,Boolean> greaterThan(Object object)
           Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0.
static Function<Object,Boolean> greaterThan(short object)
           Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0.
static
<X> Function<X,Boolean>
greaterThanBy(IFunction<X,?> by, byte object)
           Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0.
static
<X> Function<X,Boolean>
greaterThanBy(IFunction<X,?> by, double object)
           Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0.
static
<X> Function<X,Boolean>
greaterThanBy(IFunction<X,?> by, float object)
           Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0.
static
<X> Function<X,Boolean>
greaterThanBy(IFunction<X,?> by, int object)
           Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0.
static
<X> Function<X,Boolean>
greaterThanBy(IFunction<X,?> by, long object)
           Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0.
static
<X> Function<X,Boolean>
greaterThanBy(IFunction<X,?> by, Object object)
           Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0.
static
<X> Function<X,Boolean>
greaterThanBy(IFunction<X,?> by, short object)
           Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0.
static
<T> Function<T,T[]>
intoSingletonArrayOf(org.javaruntype.type.Type<T> type)
           Creates an array of the specified type with only the target object in it.
static
<T> Function<T,List<T>>
intoSingletonListOf(org.javaruntype.type.Type<T> type)
           Creates a list of the specified type with only the target object in it.
static
<T> Function<T,Set<T>>
intoSingletonSetOf(org.javaruntype.type.Type<T> type)
           Creates a set of the specified type with only the target object in it.
static Function<Object,Boolean> isNotNull()
           Determines whether the target object is null or not.
static
<X> Function<X,Boolean>
isNotNullBy(IFunction<X,?> by)
           Determines whether the result of executing the specified function on the target object is null or not.
static Function<Object,Boolean> isNull()
           Determines whether the target object is null or not.
static
<X> Function<X,Boolean>
isNullBy(IFunction<X,?> by)
           Determines whether the result of executing the specified function on the target object is null or not.
static Function<Object,Boolean> lessOrEqTo(byte object)
           Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0.
static Function<Object,Boolean> lessOrEqTo(double object)
           Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0.
static Function<Object,Boolean> lessOrEqTo(float object)
           Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0.
static Function<Object,Boolean> lessOrEqTo(int object)
           Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0.
static Function<Object,Boolean> lessOrEqTo(long object)
           Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0.
static Function<Object,Boolean> lessOrEqTo(Object object)
           Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0.
static Function<Object,Boolean> lessOrEqTo(short object)
           Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0.
static
<X> Function<X,Boolean>
lessOrEqToBy(IFunction<X,?> by, byte object)
           Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0.
static
<X> Function<X,Boolean>
lessOrEqToBy(IFunction<X,?> by, double object)
           Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0.
static
<X> Function<X,Boolean>
lessOrEqToBy(IFunction<X,?> by, float object)
           Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0.
static
<X> Function<X,Boolean>
lessOrEqToBy(IFunction<X,?> by, int object)
           Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0.
static
<X> Function<X,Boolean>
lessOrEqToBy(IFunction<X,?> by, long object)
           Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0.
static
<X> Function<X,Boolean>
lessOrEqToBy(IFunction<X,?> by, Object object)
           Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0.
static
<X> Function<X,Boolean>
lessOrEqToBy(IFunction<X,?> by, short object)
           Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0.
static Function<Object,Boolean> lessThan(byte object)
           Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0.
static Function<Object,Boolean> lessThan(double object)
           Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0.
static Function<Object,Boolean> lessThan(float object)
           Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0.
static Function<Object,Boolean> lessThan(int object)
           Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0.
static Function<Object,Boolean> lessThan(long object)
           Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0.
static Function<Object,Boolean> lessThan(Object object)
           Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0.
static Function<Object,Boolean> lessThan(short object)
           Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0.
static
<X> Function<X,Boolean>
lessThanBy(IFunction<X,?> by, byte object)
           Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0.
static
<X> Function<X,Boolean>
lessThanBy(IFunction<X,?> by, double object)
           Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0.
static
<X> Function<X,Boolean>
lessThanBy(IFunction<X,?> by, float object)
           Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0.
static
<X> Function<X,Boolean>
lessThanBy(IFunction<X,?> by, int object)
           Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0.
static
<X> Function<X,Boolean>
lessThanBy(IFunction<X,?> by, long object)
           Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0.
static
<X> Function<X,Boolean>
lessThanBy(IFunction<X,?> by, Object object)
           Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0.
static
<X> Function<X,Boolean>
lessThanBy(IFunction<X,?> by, short object)
           Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0.
static Function<Object,Boolean> notEq(boolean object)
           Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
static Function<Object,Boolean> notEq(byte object)
           Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
static Function<Object,Boolean> notEq(double object)
           Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
static Function<Object,Boolean> notEq(float object)
           Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
static Function<Object,Boolean> notEq(int object)
           Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
static Function<Object,Boolean> notEq(long object)
           Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
static Function<Object,Boolean> notEq(Object object)
           Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
static Function<Object,Boolean> notEq(short object)
           Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.
static
<X> Function<X,Boolean>
notEqBy(IFunction<X,?> by, boolean object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
static
<X> Function<X,Boolean>
notEqBy(IFunction<X,?> by, byte object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
static
<X> Function<X,Boolean>
notEqBy(IFunction<X,?> by, double object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
static
<X> Function<X,Boolean>
notEqBy(IFunction<X,?> by, float object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
static
<X> Function<X,Boolean>
notEqBy(IFunction<X,?> by, int object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
static
<X> Function<X,Boolean>
notEqBy(IFunction<X,?> by, long object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
static
<X> Function<X,Boolean>
notEqBy(IFunction<X,?> by, Object object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
static
<X> Function<X,Boolean>
notEqBy(IFunction<X,?> by, short object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.
static Function<Object,Boolean> notEqValue(boolean object)
           Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) !
static Function<Object,Boolean> notEqValue(byte object)
           Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) !
static Function<Object,Boolean> notEqValue(double object)
           Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) !
static Function<Object,Boolean> notEqValue(float object)
           Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) !
static Function<Object,Boolean> notEqValue(int object)
           Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) !
static Function<Object,Boolean> notEqValue(long object)
           Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) !
static Function<Object,Boolean> notEqValue(Object object)
           Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) !
static Function<Object,Boolean> notEqValue(short object)
           Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) !
static
<X> Function<X,Boolean>
notEqValueBy(IFunction<X,?> by, boolean object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) !
static
<X> Function<X,Boolean>
notEqValueBy(IFunction<X,?> by, byte object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) !
static
<X> Function<X,Boolean>
notEqValueBy(IFunction<X,?> by, double object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) !
static
<X> Function<X,Boolean>
notEqValueBy(IFunction<X,?> by, float object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) !
static
<X> Function<X,Boolean>
notEqValueBy(IFunction<X,?> by, int object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) !
static
<X> Function<X,Boolean>
notEqValueBy(IFunction<X,?> by, long object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) !
static
<X> Function<X,Boolean>
notEqValueBy(IFunction<X,?> by, Object object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) !
static
<X> Function<X,Boolean>
notEqValueBy(IFunction<X,?> by, short object)
           Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) !
protected static Comparable prepareComparable(Comparable comp)
           
static
<T> Function<Object,T>
replaceWith(T object)
           Replaces the target object with the object specified as a parameter.
static Function<Object,String> toStr()
           Converts the target object to String using the default toString() method.
static Function<Object,String> toStrNullSafe()
           Converts the target object to String using the default toString() method, returning null if target is null.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

toStr

public static final Function<Object,String> toStr()

Converts the target object to String using the default toString() method.

Returns:
the String representation of the target object.

toStrNullSafe

public static final Function<Object,String> toStrNullSafe()

Converts the target object to String using the default toString() method, returning null if target is null.

Returns:
the String representation of the target object, or null if target is null.

intoSingletonArrayOf

public static final <T> Function<T,T[]> intoSingletonArrayOf(org.javaruntype.type.Type<T> type)

Creates an array of the specified type with only the target object in it.

Type Parameters:
T - the type of the array elements
Parameters:
type - the type of the array
Returns:
the resulting array.

intoSingletonListOf

public static final <T> Function<T,List<T>> intoSingletonListOf(org.javaruntype.type.Type<T> type)

Creates a list of the specified type with only the target object in it.

Type Parameters:
T - the type of the list elements
Parameters:
type - the type of the list
Returns:
the resulting list.

intoSingletonSetOf

public static final <T> Function<T,Set<T>> intoSingletonSetOf(org.javaruntype.type.Type<T> type)

Creates a set of the specified type with only the target object in it.

Type Parameters:
T - the type of the set elements
Parameters:
type - the type of the set
Returns:
the resulting set.

eq

public static final Function<Object,Boolean> eq(Object object)

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

public static final Function<Object,Boolean> eq(float object)

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

public static final Function<Object,Boolean> eq(double object)

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

public static final Function<Object,Boolean> eq(byte object)

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

public static final Function<Object,Boolean> eq(short object)

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

public static final Function<Object,Boolean> eq(int object)

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

public static final Function<Object,Boolean> eq(long object)

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eq

public static final Function<Object,Boolean> eq(boolean object)

Determines whether the target object and the specified object are equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqValue

public static final Function<Object,Boolean> eqValue(Object object)

Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

public static final Function<Object,Boolean> eqValue(float object)

Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

public static final Function<Object,Boolean> eqValue(double object)

Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

public static final Function<Object,Boolean> eqValue(byte object)

Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

public static final Function<Object,Boolean> eqValue(short object)

Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

public static final Function<Object,Boolean> eqValue(int object)

Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

public static final Function<Object,Boolean> eqValue(long object)

Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValue

public static final Function<Object,Boolean> eqValue(boolean object)

Determines whether the target object and the specified object are equal in value, this is, whether target.compareTo(object) == 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

notEq

public static final Function<Object,Boolean> notEq(Object object)

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

public static final Function<Object,Boolean> notEq(float object)

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

public static final Function<Object,Boolean> notEq(double object)

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

public static final Function<Object,Boolean> notEq(byte object)

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

public static final Function<Object,Boolean> notEq(short object)

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

public static final Function<Object,Boolean> notEq(int object)

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

public static final Function<Object,Boolean> notEq(long object)

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEq

public static final Function<Object,Boolean> notEq(boolean object)

Determines whether the target object and the specified object are NOT equal by calling the equals method on the target object.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqValue

public static final Function<Object,Boolean> notEqValue(Object object)

Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) != 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

public static final Function<Object,Boolean> notEqValue(float object)

Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) != 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

public static final Function<Object,Boolean> notEqValue(double object)

Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) != 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

public static final Function<Object,Boolean> notEqValue(byte object)

Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) != 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

public static final Function<Object,Boolean> notEqValue(short object)

Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) != 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

public static final Function<Object,Boolean> notEqValue(int object)

Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) != 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

public static final Function<Object,Boolean> notEqValue(long object)

Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) != 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValue

public static final Function<Object,Boolean> notEqValue(boolean object)

Determines whether the target object and the specified object are NOT equal in value, this is, whether target.compareTo(object) != 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

lessThan

public static final Function<Object,Boolean> lessThan(Object object)

Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

public static final Function<Object,Boolean> lessThan(float object)

Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

public static final Function<Object,Boolean> lessThan(double object)

Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

public static final Function<Object,Boolean> lessThan(byte object)

Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

public static final Function<Object,Boolean> lessThan(short object)

Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

public static final Function<Object,Boolean> lessThan(int object)

Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessThan

public static final Function<Object,Boolean> lessThan(long object)

Determines whether the target object is less than the specified object in value, this is, whether target.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less than the specified object, false if not

lessOrEqTo

public static final Function<Object,Boolean> lessOrEqTo(Object object)

Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

public static final Function<Object,Boolean> lessOrEqTo(float object)

Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

public static final Function<Object,Boolean> lessOrEqTo(double object)

Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

public static final Function<Object,Boolean> lessOrEqTo(byte object)

Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

public static final Function<Object,Boolean> lessOrEqTo(short object)

Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

public static final Function<Object,Boolean> lessOrEqTo(int object)

Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

lessOrEqTo

public static final Function<Object,Boolean> lessOrEqTo(long object)

Determines whether the target object is less or equal to the specified object in value, this is, whether target.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is less or equal to the specified object, false if not

greaterThan

public static final Function<Object,Boolean> greaterThan(Object object)

Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

public static final Function<Object,Boolean> greaterThan(float object)

Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

public static final Function<Object,Boolean> greaterThan(double object)

Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

public static final Function<Object,Boolean> greaterThan(byte object)

Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

public static final Function<Object,Boolean> greaterThan(short object)

Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

public static final Function<Object,Boolean> greaterThan(int object)

Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterThan

public static final Function<Object,Boolean> greaterThan(long object)

Determines whether the target object is greater than the specified object in value, this is, whether target.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater than the specified object, false if not

greaterOrEqTo

public static final Function<Object,Boolean> greaterOrEqTo(Object object)

Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

public static final Function<Object,Boolean> greaterOrEqTo(float object)

Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

public static final Function<Object,Boolean> greaterOrEqTo(double object)

Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

public static final Function<Object,Boolean> greaterOrEqTo(byte object)

Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

public static final Function<Object,Boolean> greaterOrEqTo(short object)

Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

public static final Function<Object,Boolean> greaterOrEqTo(int object)

Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

greaterOrEqTo

public static final Function<Object,Boolean> greaterOrEqTo(long object)

Determines whether the target object is greater or equal to the specified object in value, this is, whether target.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if target is greater or equal to the specified object, false if not

eqBy

public static final <X> Function<X,Boolean> eqBy(IFunction<X,?> by,
                                                 Object object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

public static final <X> Function<X,Boolean> eqBy(IFunction<X,?> by,
                                                 float object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

public static final <X> Function<X,Boolean> eqBy(IFunction<X,?> by,
                                                 double object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

public static final <X> Function<X,Boolean> eqBy(IFunction<X,?> by,
                                                 byte object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

public static final <X> Function<X,Boolean> eqBy(IFunction<X,?> by,
                                                 short object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

public static final <X> Function<X,Boolean> eqBy(IFunction<X,?> by,
                                                 int object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

public static final <X> Function<X,Boolean> eqBy(IFunction<X,?> by,
                                                 long object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqBy

public static final <X> Function<X,Boolean> eqBy(IFunction<X,?> by,
                                                 boolean object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal, false if not.

eqValueBy

public static final <X> Function<X,Boolean> eqValueBy(IFunction<X,?> by,
                                                      Object object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

public static final <X> Function<X,Boolean> eqValueBy(IFunction<X,?> by,
                                                      float object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

public static final <X> Function<X,Boolean> eqValueBy(IFunction<X,?> by,
                                                      double object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

public static final <X> Function<X,Boolean> eqValueBy(IFunction<X,?> by,
                                                      byte object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

public static final <X> Function<X,Boolean> eqValueBy(IFunction<X,?> by,
                                                      short object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

public static final <X> Function<X,Boolean> eqValueBy(IFunction<X,?> by,
                                                      int object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

public static final <X> Function<X,Boolean> eqValueBy(IFunction<X,?> by,
                                                      long object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

eqValueBy

public static final <X> Function<X,Boolean> eqValueBy(IFunction<X,?> by,
                                                      boolean object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are equal in value, this is, whether functionResult.compareTo(object) == 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if both objects are equal according to "compareTo", false if not.

notEqBy

public static final <X> Function<X,Boolean> notEqBy(IFunction<X,?> by,
                                                    Object object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

public static final <X> Function<X,Boolean> notEqBy(IFunction<X,?> by,
                                                    float object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

public static final <X> Function<X,Boolean> notEqBy(IFunction<X,?> by,
                                                    double object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

public static final <X> Function<X,Boolean> notEqBy(IFunction<X,?> by,
                                                    byte object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

public static final <X> Function<X,Boolean> notEqBy(IFunction<X,?> by,
                                                    short object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

public static final <X> Function<X,Boolean> notEqBy(IFunction<X,?> by,
                                                    int object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

public static final <X> Function<X,Boolean> notEqBy(IFunction<X,?> by,
                                                    long object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqBy

public static final <X> Function<X,Boolean> notEqBy(IFunction<X,?> by,
                                                    boolean object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal by calling the equals method.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal, true if not.

notEqValueBy

public static final <X> Function<X,Boolean> notEqValueBy(IFunction<X,?> by,
                                                         Object object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) != 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

public static final <X> Function<X,Boolean> notEqValueBy(IFunction<X,?> by,
                                                         float object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) != 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

public static final <X> Function<X,Boolean> notEqValueBy(IFunction<X,?> by,
                                                         double object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) != 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

public static final <X> Function<X,Boolean> notEqValueBy(IFunction<X,?> by,
                                                         byte object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) != 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

public static final <X> Function<X,Boolean> notEqValueBy(IFunction<X,?> by,
                                                         short object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) != 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

public static final <X> Function<X,Boolean> notEqValueBy(IFunction<X,?> by,
                                                         int object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) != 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

public static final <X> Function<X,Boolean> notEqValueBy(IFunction<X,?> by,
                                                         long object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) != 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

notEqValueBy

public static final <X> Function<X,Boolean> notEqValueBy(IFunction<X,?> by,
                                                         boolean object)

Determines whether the result of executing the specified function on the target object and the specified object parameter are NOT equal in value, this is, whether functionResult.compareTo(object) != 0. Both the function result and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
false if both objects are equal according to "compareTo", true if not.

lessThanBy

public static final <X> Function<X,Boolean> lessThanBy(IFunction<X,?> by,
                                                       Object object)

Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

public static final <X> Function<X,Boolean> lessThanBy(IFunction<X,?> by,
                                                       float object)

Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

public static final <X> Function<X,Boolean> lessThanBy(IFunction<X,?> by,
                                                       double object)

Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

public static final <X> Function<X,Boolean> lessThanBy(IFunction<X,?> by,
                                                       byte object)

Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

public static final <X> Function<X,Boolean> lessThanBy(IFunction<X,?> by,
                                                       short object)

Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

public static final <X> Function<X,Boolean> lessThanBy(IFunction<X,?> by,
                                                       int object)

Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessThanBy

public static final <X> Function<X,Boolean> lessThanBy(IFunction<X,?> by,
                                                       long object)

Determines whether the result of executing the specified function on the target object is less than the specified object parameter in value, this is, whether functionResult.compareTo(object) < 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less than the specified object, false if not

lessOrEqToBy

public static final <X> Function<X,Boolean> lessOrEqToBy(IFunction<X,?> by,
                                                         Object object)

Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

public static final <X> Function<X,Boolean> lessOrEqToBy(IFunction<X,?> by,
                                                         float object)

Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

public static final <X> Function<X,Boolean> lessOrEqToBy(IFunction<X,?> by,
                                                         double object)

Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

public static final <X> Function<X,Boolean> lessOrEqToBy(IFunction<X,?> by,
                                                         byte object)

Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

public static final <X> Function<X,Boolean> lessOrEqToBy(IFunction<X,?> by,
                                                         short object)

Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

public static final <X> Function<X,Boolean> lessOrEqToBy(IFunction<X,?> by,
                                                         int object)

Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

lessOrEqToBy

public static final <X> Function<X,Boolean> lessOrEqToBy(IFunction<X,?> by,
                                                         long object)

Determines whether the result of executing the specified function on the target object is less or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) <= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is less or equal to the specified object, false if not

greaterThanBy

public static final <X> Function<X,Boolean> greaterThanBy(IFunction<X,?> by,
                                                          Object object)

Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

public static final <X> Function<X,Boolean> greaterThanBy(IFunction<X,?> by,
                                                          float object)

Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

public static final <X> Function<X,Boolean> greaterThanBy(IFunction<X,?> by,
                                                          double object)

Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

public static final <X> Function<X,Boolean> greaterThanBy(IFunction<X,?> by,
                                                          byte object)

Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

public static final <X> Function<X,Boolean> greaterThanBy(IFunction<X,?> by,
                                                          short object)

Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

public static final <X> Function<X,Boolean> greaterThanBy(IFunction<X,?> by,
                                                          int object)

Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterThanBy

public static final <X> Function<X,Boolean> greaterThanBy(IFunction<X,?> by,
                                                          long object)

Determines whether the result of executing the specified function on the target object is greater than the specified object parameter in value, this is, whether functionResult.compareTo(object) > 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater than the specified object, false if not

greaterOrEqToBy

public static final <X> Function<X,Boolean> greaterOrEqToBy(IFunction<X,?> by,
                                                            Object object)

Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

public static final <X> Function<X,Boolean> greaterOrEqToBy(IFunction<X,?> by,
                                                            float object)

Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

public static final <X> Function<X,Boolean> greaterOrEqToBy(IFunction<X,?> by,
                                                            double object)

Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

public static final <X> Function<X,Boolean> greaterOrEqToBy(IFunction<X,?> by,
                                                            byte object)

Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

public static final <X> Function<X,Boolean> greaterOrEqToBy(IFunction<X,?> by,
                                                            short object)

Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

public static final <X> Function<X,Boolean> greaterOrEqToBy(IFunction<X,?> by,
                                                            int object)

Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

greaterOrEqToBy

public static final <X> Function<X,Boolean> greaterOrEqToBy(IFunction<X,?> by,
                                                            long object)

Determines whether the result of executing the specified function on the target object is greater or equal to the specified object parameter in value, this is, whether functionResult.compareTo(object) >= 0. Both the target and the specified object have to implement Comparable.

Parameters:
object - the object to compare to the target
Returns:
true if function result is greater or equal to the specified object, false if not

isNull

public static final Function<Object,Boolean> isNull()

Determines whether the target object is null or not.

Returns:
true if the target object is null, false if not.

isNotNull

public static final Function<Object,Boolean> isNotNull()

Determines whether the target object is null or not.

Returns:
false if the target object is null, true if not.

isNullBy

public static final <X> Function<X,Boolean> isNullBy(IFunction<X,?> by)

Determines whether the result of executing the specified function on the target object is null or not.

Returns:
true if the function result is null, false if not.

isNotNullBy

public static final <X> Function<X,Boolean> isNotNullBy(IFunction<X,?> by)

Determines whether the result of executing the specified function on the target object is null or not.

Returns:
false if the function result is null, true if not.

replaceWith

public static final <T> Function<Object,T> replaceWith(T object)

Replaces the target object with the object specified as a parameter.

Parameters:
object - the replacement object
Returns:
the replacement object

between

public static final Function<Object,Boolean> between(Object min,
                                                     Object max)

Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. The target and the specified min and max have to implement Comparable.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

public static final Function<Object,Boolean> between(float min,
                                                     float max)

Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. The target and the specified min and max have to implement Comparable.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

public static final Function<Object,Boolean> between(int min,
                                                     int max)

Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. The target and the specified min and max have to implement Comparable.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

public static final Function<Object,Boolean> between(byte min,
                                                     byte max)

Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. The target and the specified min and max have to implement Comparable.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

public static final Function<Object,Boolean> between(double min,
                                                     double max)

Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. The target and the specified min and max have to implement Comparable.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

public static final Function<Object,Boolean> between(long min,
                                                     long max)

Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. The target and the specified min and max have to implement Comparable.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

between

public static final Function<Object,Boolean> between(short min,
                                                     short max)

Determines whether the target object is between min and max in value, this is, whether target.compareTo(min) >= 0 && target.compareTo(max) <= 0. The target and the specified min and max have to implement Comparable.

Parameters:
min - the minimum value of the target
max - the maximum value of the target
Returns:
true if the target is between min and max (or it's equal to any of them)

prepareComparable

protected static final Comparable prepareComparable(Comparable comp)


Copyright © 2012 The OP4J team. All Rights Reserved.