|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.op4j.functions.Fn
public final class Fn
Building class for Function Expressions.
This class allows the creation of chained expressions in exactly the same way
as Op
, but the results of expressions starting with Fn
are functions instead of objects.
For more info, see the Basics Page.
Method Summary | ||
---|---|---|
static
|
on(org.javaruntype.type.Type<T> type)
Creates a function expression for building a function operating on a target object of the specified type. |
|
static
|
onArrayOf(org.javaruntype.type.Type<T> type)
Creates a function expression for building a function operating on a target object of type T[], being Type<T> a type specified as a parameter. |
|
static Level0ArrayOperator<BigDecimal[],BigDecimal> |
onArrayOfBigDecimal()
Creates a function expression for building a function operating on a target object of type BigDecimal[]. |
|
static Level0ArrayOperator<BigInteger[],BigInteger> |
onArrayOfBigInteger()
Creates a function expression for building a function operating on a target object of type BigInteger[]. |
|
static Level0ArrayOperator<Boolean[],Boolean> |
onArrayOfBoolean()
Creates a function expression for building a function operating on a target object of type Boolean[]. |
|
static Level0ArrayOperator<Byte[],Byte> |
onArrayOfByte()
Creates a function expression for building a function operating on a target object of type Byte[]. |
|
static Level0ArrayOperator<Calendar[],Calendar> |
onArrayOfCalendar()
Creates a function expression for building a function operating on a target object of type Calendar[]. |
|
static Level0ArrayOperator<Character[],Character> |
onArrayOfCharacter()
Creates a function expression for building a function operating on a target object of type Character[]. |
|
static Level0ArrayOperator<Date[],Date> |
onArrayOfDate()
Creates a function expression for building a function operating on a target object of type Date[]. |
|
static Level0ArrayOperator<Double[],Double> |
onArrayOfDouble()
Creates a function expression for building a function operating on a target object of type Double[]. |
|
static Level0ArrayOperator<Float[],Float> |
onArrayOfFloat()
Creates a function expression for building a function operating on a target object of type Float[]. |
|
static Level0ArrayOperator<Integer[],Integer> |
onArrayOfInteger()
Creates a function expression for building a function operating on a target object of type Integer[]. |
|
static Level0ArrayOperator<Long[],Long> |
onArrayOfLong()
Creates a function expression for building a function operating on a target object of type Long[]. |
|
static Level0ArrayOperator<Object[],Object> |
onArrayOfObject()
Creates a function expression for building a function operating on a target object of type Object[]. |
|
static Level0ArrayOperator<Short[],Short> |
onArrayOfShort()
Creates a function expression for building a function operating on a target object of type Short[]. |
|
static Level0ArrayOperator<String[],String> |
onArrayOfString()
Creates a function expression for building a function operating on a target object of type String[]. |
|
static Level0GenericUniqOperator<BigDecimal,BigDecimal> |
onBigDecimal()
Creates a function expression for building a function operating on a target object of type BigDecimal. |
|
static Level0GenericUniqOperator<BigInteger,BigInteger> |
onBigInteger()
Creates a function expression for building a function operating on a target object of type BigInteger. |
|
static Level0GenericUniqOperator<Boolean,Boolean> |
onBoolean()
Creates a function expression for building a function operating on a target object of type Boolean. |
|
static Level0GenericUniqOperator<Byte,Byte> |
onByte()
Creates a function expression for building a function operating on a target object of type Byte. |
|
static Level0GenericUniqOperator<Calendar,Calendar> |
onCalendar()
Creates a function expression for building a function operating on a target object of type Calendar. |
|
static Level0GenericUniqOperator<Character,Character> |
onCharacter()
Creates a function expression for building a function operating on a target object of type Character. |
|
static Level0GenericUniqOperator<Date,Date> |
onDate()
Creates a function expression for building a function operating on a target object of type Date. |
|
static Level0GenericUniqOperator<Double,Double> |
onDouble()
Creates a function expression for building a function operating on a target object of type Double. |
|
static Level0GenericUniqOperator<Float,Float> |
onFloat()
Creates a function expression for building a function operating on a target object of type Float. |
|
static Level0GenericUniqOperator<Integer,Integer> |
onInteger()
Creates a function expression for building a function operating on a target object of type Integer. |
|
static
|
onListOf(org.javaruntype.type.Type<T> type)
Creates a function expression for building a function operating on a target object of type List<T>, being Type<T> a type specified as a parameter. |
|
static Level0ListOperator<List<BigDecimal>,BigDecimal> |
onListOfBigDecimal()
Creates a function expression for building a function operating on a target object of type List<BigDecimal>. |
|
static Level0ListOperator<List<BigInteger>,BigInteger> |
onListOfBigInteger()
Creates a function expression for building a function operating on a target object of type List<BigInteger>. |
|
static Level0ListOperator<List<Boolean>,Boolean> |
onListOfBoolean()
Creates a function expression for building a function operating on a target object of type List<Boolean>. |
|
static Level0ListOperator<List<Byte>,Byte> |
onListOfByte()
Creates a function expression for building a function operating on a target object of type List<Byte>. |
|
static Level0ListOperator<List<Calendar>,Calendar> |
onListOfCalendar()
Creates a function expression for building a function operating on a target object of type List<Calendar>. |
|
static Level0ListOperator<List<Character>,Character> |
onListOfCharacter()
Creates a function expression for building a function operating on a target object of type List<Character>. |
|
static Level0ListOperator<List<Date>,Date> |
onListOfDate()
Creates a function expression for building a function operating on a target object of type List<Date>. |
|
static Level0ListOperator<List<Double>,Double> |
onListOfDouble()
Creates a function expression for building a function operating on a target object of type List<Double>. |
|
static Level0ListOperator<List<Float>,Float> |
onListOfFloat()
Creates a function expression for building a function operating on a target object of type List<Float>. |
|
static Level0ListOperator<List<Integer>,Integer> |
onListOfInteger()
Creates a function expression for building a function operating on a target object of type List<Integer>. |
|
static Level0ListOperator<List<Long>,Long> |
onListOfLong()
Creates a function expression for building a function operating on a target object of type List<Long>. |
|
static Level0ListOperator<List<Object>,Object> |
onListOfObject()
Creates a function expression for building a function operating on a target object of type List<Object>. |
|
static Level0ListOperator<List<Short>,Short> |
onListOfShort()
Creates a function expression for building a function operating on a target object of type List<Short>. |
|
static Level0ListOperator<List<String>,String> |
onListOfString()
Creates a function expression for building a function operating on a target object of type List<String>. |
|
static Level0GenericUniqOperator<Long,Long> |
onLong()
Creates a function expression for building a function operating on a target object of type Long. |
|
static
|
onMapOf(org.javaruntype.type.Type<K> keyType,
org.javaruntype.type.Type<V> valueType)
Creates a function expression for building a function operating on a target object of type Map<K,V>, being both Type<K> and Type<V> type specified as parameters. |
|
static Level0GenericUniqOperator<Object,Object> |
onObject()
Creates a function expression for building a function operating on a target object of type Object. |
|
static
|
onSetOf(org.javaruntype.type.Type<T> type)
Creates a function expression for building a function operating on a target object of type Set<T>, being Type<T> a type specified as a parameter. |
|
static Level0SetOperator<Set<BigDecimal>,BigDecimal> |
onSetOfBigDecimal()
Creates a function expression for building a function operating on a target object of type Set<BigDecimal>. |
|
static Level0SetOperator<Set<BigInteger>,BigInteger> |
onSetOfBigInteger()
Creates a function expression for building a function operating on a target object of type Set<BigInteger>. |
|
static Level0SetOperator<Set<Boolean>,Boolean> |
onSetOfBoolean()
Creates a function expression for building a function operating on a target object of type Set<Boolean>. |
|
static Level0SetOperator<Set<Byte>,Byte> |
onSetOfByte()
Creates a function expression for building a function operating on a target object of type Set<Byte>. |
|
static Level0SetOperator<Set<Calendar>,Calendar> |
onSetOfCalendar()
Creates a function expression for building a function operating on a target object of type Set<Calendar>. |
|
static Level0SetOperator<Set<Character>,Character> |
onSetOfCharacter()
Creates a function expression for building a function operating on a target object of type Set<Character>. |
|
static Level0SetOperator<Set<Date>,Date> |
onSetOfDate()
Creates a function expression for building a function operating on a target object of type Set<Date>. |
|
static Level0SetOperator<Set<Double>,Double> |
onSetOfDouble()
Creates a function expression for building a function operating on a target object of type Set<Double>. |
|
static Level0SetOperator<Set<Float>,Float> |
onSetOfFloat()
Creates a function expression for building a function operating on a target object of type Set<Float>. |
|
static Level0SetOperator<Set<Integer>,Integer> |
onSetOfInteger()
Creates a function expression for building a function operating on a target object of type Set<Integer>. |
|
static Level0SetOperator<Set<Long>,Long> |
onSetOfLong()
Creates a function expression for building a function operating on a target object of type Set<Long>. |
|
static Level0SetOperator<Set<Object>,Object> |
onSetOfObject()
Creates a function expression for building a function operating on a target object of type Set<Object>. |
|
static Level0SetOperator<Set<Short>,Short> |
onSetOfShort()
Creates a function expression for building a function operating on a target object of type Set<Short>. |
|
static Level0SetOperator<Set<String>,String> |
onSetOfString()
Creates a function expression for building a function operating on a target object of type Set<String>. |
|
static Level0GenericUniqOperator<Short,Short> |
onShort()
Creates a function expression for building a function operating on a target object of type Short. |
|
static Level0GenericUniqOperator<String,String> |
onString()
Creates a function expression for building a function operating on a target object of type String. |
Methods inherited from class Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Method Detail |
---|
public static <T> Level0GenericUniqOperator<T,T> on(org.javaruntype.type.Type<T> type)
Creates a function expression for building a function operating on a target object of the specified type.
Examples:
Function
).
type
- the type of the object on which the expression should start
public static Level0GenericUniqOperator<Object,Object> onObject()
Creates a function expression for building a function operating on a target object of type Object.
This is equivalent to Fn.on(Types.OBJECT)
public static Level0ArrayOperator<Object[],Object> onArrayOfObject()
Creates a function expression for building a function operating on a target object of type Object[].
This is equivalent to Fn.onArrayOf(Types.OBJECT)
public static Level0ListOperator<List<Object>,Object> onListOfObject()
Creates a function expression for building a function operating on a target object of type List<Object>.
This is equivalent to Fn.onListOf(Types.OBJECT)
public static Level0SetOperator<Set<Object>,Object> onSetOfObject()
Creates a function expression for building a function operating on a target object of type Set<Object>.
This is equivalent to Fn.onSetOf(Types.OBJECT)
public static Level0GenericUniqOperator<BigInteger,BigInteger> onBigInteger()
Creates a function expression for building a function operating on a target object of type BigInteger.
This is equivalent to Fn.on(Types.BIG_INTEGER)
public static Level0ArrayOperator<BigInteger[],BigInteger> onArrayOfBigInteger()
Creates a function expression for building a function operating on a target object of type BigInteger[].
This is equivalent to Fn.onArrayOf(Types.BIG_INTEGER)
public static Level0ListOperator<List<BigInteger>,BigInteger> onListOfBigInteger()
Creates a function expression for building a function operating on a target object of type List<BigInteger>.
This is equivalent to Fn.onListOf(Types.BIG_INTEGER)
public static Level0SetOperator<Set<BigInteger>,BigInteger> onSetOfBigInteger()
Creates a function expression for building a function operating on a target object of type Set<BigInteger>.
This is equivalent to Fn.onSetOf(Types.BIG_INTEGER)
public static Level0GenericUniqOperator<BigDecimal,BigDecimal> onBigDecimal()
Creates a function expression for building a function operating on a target object of type BigDecimal.
This is equivalent to Fn.on(Types.BIG_DECIMAL)
public static Level0ArrayOperator<BigDecimal[],BigDecimal> onArrayOfBigDecimal()
Creates a function expression for building a function operating on a target object of type BigDecimal[].
This is equivalent to Fn.onArrayOf(Types.BIG_DECIMAL)
public static Level0ListOperator<List<BigDecimal>,BigDecimal> onListOfBigDecimal()
Creates a function expression for building a function operating on a target object of type List<BigDecimal>.
This is equivalent to Fn.onListOf(Types.BIG_DECIMAL)
public static Level0SetOperator<Set<BigDecimal>,BigDecimal> onSetOfBigDecimal()
Creates a function expression for building a function operating on a target object of type Set<BigDecimal>.
This is equivalent to Fn.onSetOf(Types.BIG_DECIMAL)
public static Level0GenericUniqOperator<Boolean,Boolean> onBoolean()
Creates a function expression for building a function operating on a target object of type Boolean.
This is equivalent to Fn.on(Types.BOOLEAN)
public static Level0ArrayOperator<Boolean[],Boolean> onArrayOfBoolean()
Creates a function expression for building a function operating on a target object of type Boolean[].
This is equivalent to Fn.onArrayOf(Types.BOOLEAN)
public static Level0ListOperator<List<Boolean>,Boolean> onListOfBoolean()
Creates a function expression for building a function operating on a target object of type List<Boolean>.
This is equivalent to Fn.onListOf(Types.BOOLEAN)
public static Level0SetOperator<Set<Boolean>,Boolean> onSetOfBoolean()
Creates a function expression for building a function operating on a target object of type Set<Boolean>.
This is equivalent to Fn.onSetOf(Types.BOOLEAN)
public static Level0GenericUniqOperator<Byte,Byte> onByte()
Creates a function expression for building a function operating on a target object of type Byte.
This is equivalent to Fn.on(Types.BYTE)
public static Level0ArrayOperator<Byte[],Byte> onArrayOfByte()
Creates a function expression for building a function operating on a target object of type Byte[].
This is equivalent to Fn.onArrayOf(Types.BYTE)
public static Level0ListOperator<List<Byte>,Byte> onListOfByte()
Creates a function expression for building a function operating on a target object of type List<Byte>.
This is equivalent to Fn.onListOf(Types.BYTE)
public static Level0SetOperator<Set<Byte>,Byte> onSetOfByte()
Creates a function expression for building a function operating on a target object of type Set<Byte>.
This is equivalent to Fn.onSetOf(Types.BYTE)
public static Level0GenericUniqOperator<Character,Character> onCharacter()
Creates a function expression for building a function operating on a target object of type Character.
This is equivalent to Fn.on(Types.CHARACTER)
public static Level0ArrayOperator<Character[],Character> onArrayOfCharacter()
Creates a function expression for building a function operating on a target object of type Character[].
This is equivalent to Fn.onArrayOf(Types.CHARACTER)
public static Level0ListOperator<List<Character>,Character> onListOfCharacter()
Creates a function expression for building a function operating on a target object of type List<Character>.
This is equivalent to Fn.onListOf(Types.CHARACTER)
public static Level0SetOperator<Set<Character>,Character> onSetOfCharacter()
Creates a function expression for building a function operating on a target object of type Set<Character>.
This is equivalent to Fn.onSetOf(Types.CHARACTER)
public static Level0GenericUniqOperator<Calendar,Calendar> onCalendar()
Creates a function expression for building a function operating on a target object of type Calendar.
This is equivalent to Fn.on(Types.CALENDAR)
public static Level0ArrayOperator<Calendar[],Calendar> onArrayOfCalendar()
Creates a function expression for building a function operating on a target object of type Calendar[].
This is equivalent to Fn.onArrayOf(Types.CALENDAR)
public static Level0ListOperator<List<Calendar>,Calendar> onListOfCalendar()
Creates a function expression for building a function operating on a target object of type List<Calendar>.
This is equivalent to Fn.onListOf(Types.CALENDAR)
public static Level0SetOperator<Set<Calendar>,Calendar> onSetOfCalendar()
Creates a function expression for building a function operating on a target object of type Set<Calendar>.
This is equivalent to Fn.onSetOf(Types.CALENDAR)
public static Level0GenericUniqOperator<Date,Date> onDate()
Creates a function expression for building a function operating on a target object of type Date.
This is equivalent to Fn.on(Types.DATE)
public static Level0ArrayOperator<Date[],Date> onArrayOfDate()
Creates a function expression for building a function operating on a target object of type Date[].
This is equivalent to Fn.onArrayOf(Types.DATE)
public static Level0ListOperator<List<Date>,Date> onListOfDate()
Creates a function expression for building a function operating on a target object of type List<Date>.
This is equivalent to Fn.onListOf(Types.DATE)
public static Level0SetOperator<Set<Date>,Date> onSetOfDate()
Creates a function expression for building a function operating on a target object of type Set<Date>.
This is equivalent to Fn.onSetOf(Types.DATE)
public static Level0GenericUniqOperator<Double,Double> onDouble()
Creates a function expression for building a function operating on a target object of type Double.
This is equivalent to Fn.on(Types.DOUBLE)
public static Level0ArrayOperator<Double[],Double> onArrayOfDouble()
Creates a function expression for building a function operating on a target object of type Double[].
This is equivalent to Fn.onArrayOf(Types.DOUBLE)
public static Level0ListOperator<List<Double>,Double> onListOfDouble()
Creates a function expression for building a function operating on a target object of type List<Double>.
This is equivalent to Fn.onListOf(Types.DOUBLE)
public static Level0SetOperator<Set<Double>,Double> onSetOfDouble()
Creates a function expression for building a function operating on a target object of type Set<Double>.
This is equivalent to Fn.onSetOf(Types.DOUBLE)
public static Level0GenericUniqOperator<Float,Float> onFloat()
Creates a function expression for building a function operating on a target object of type Float.
This is equivalent to Fn.on(Types.FLOAT)
public static Level0ArrayOperator<Float[],Float> onArrayOfFloat()
Creates a function expression for building a function operating on a target object of type Float[].
This is equivalent to Fn.onArrayOf(Types.FLOAT)
public static Level0ListOperator<List<Float>,Float> onListOfFloat()
Creates a function expression for building a function operating on a target object of type List<Float>.
This is equivalent to Fn.onListOf(Types.FLOAT)
public static Level0SetOperator<Set<Float>,Float> onSetOfFloat()
Creates a function expression for building a function operating on a target object of type Set<Float>.
This is equivalent to Fn.onSetOf(Types.FLOAT)
public static Level0GenericUniqOperator<Integer,Integer> onInteger()
Creates a function expression for building a function operating on a target object of type Integer.
This is equivalent to Fn.on(Types.INTEGER)
public static Level0ArrayOperator<Integer[],Integer> onArrayOfInteger()
Creates a function expression for building a function operating on a target object of type Integer[].
This is equivalent to Fn.onArrayOf(Types.INTEGER)
public static Level0ListOperator<List<Integer>,Integer> onListOfInteger()
Creates a function expression for building a function operating on a target object of type List<Integer>.
This is equivalent to Fn.onListOf(Types.INTEGER)
public static Level0SetOperator<Set<Integer>,Integer> onSetOfInteger()
Creates a function expression for building a function operating on a target object of type Set<Integer>.
This is equivalent to Fn.onSetOf(Types.INTEGER)
public static Level0GenericUniqOperator<Long,Long> onLong()
Creates a function expression for building a function operating on a target object of type Long.
This is equivalent to Fn.on(Types.LONG)
public static Level0ArrayOperator<Long[],Long> onArrayOfLong()
Creates a function expression for building a function operating on a target object of type Long[].
This is equivalent to Fn.onArrayOf(Types.LONG)
public static Level0ListOperator<List<Long>,Long> onListOfLong()
Creates a function expression for building a function operating on a target object of type List<Long>.
This is equivalent to Fn.onListOf(Types.LONG)
public static Level0SetOperator<Set<Long>,Long> onSetOfLong()
Creates a function expression for building a function operating on a target object of type Set<Long>.
This is equivalent to Fn.onSetOf(Types.LONG)
public static Level0GenericUniqOperator<Short,Short> onShort()
Creates a function expression for building a function operating on a target object of type Short.
This is equivalent to Fn.on(Types.SHORT)
public static Level0ArrayOperator<Short[],Short> onArrayOfShort()
Creates a function expression for building a function operating on a target object of type Short[].
This is equivalent to Fn.onArrayOf(Types.SHORT)
public static Level0ListOperator<List<Short>,Short> onListOfShort()
Creates a function expression for building a function operating on a target object of type List<Short>.
This is equivalent to Fn.onListOf(Types.SHORT)
public static Level0SetOperator<Set<Short>,Short> onSetOfShort()
Creates a function expression for building a function operating on a target object of type Set<Short>.
This is equivalent to Fn.onSetOf(Types.SHORT)
public static Level0GenericUniqOperator<String,String> onString()
Creates a function expression for building a function operating on a target object of type String.
This is equivalent to Fn.on(Types.STRING)
public static Level0ArrayOperator<String[],String> onArrayOfString()
Creates a function expression for building a function operating on a target object of type String[].
This is equivalent to Fn.onArrayOf(Types.STRING)
public static Level0ListOperator<List<String>,String> onListOfString()
Creates a function expression for building a function operating on a target object of type List<String>.
This is equivalent to Fn.onListOf(Types.STRING)
public static Level0SetOperator<Set<String>,String> onSetOfString()
Creates a function expression for building a function operating on a target object of type Set<String>.
This is equivalent to Fn.onSetOf(Types.STRING)
public static <T> Level0ArrayOperator<T[],T> onArrayOf(org.javaruntype.type.Type<T> type)
Creates a function expression for building a function operating on a target object of type T[], being Type<T> a type specified as a parameter.
This is equivalent to Fn.on(Types.arrayOf(type))
type
- the type to be used
public static <T> Level0ListOperator<List<T>,T> onListOf(org.javaruntype.type.Type<T> type)
Creates a function expression for building a function operating on a target object of type List<T>, being Type<T> a type specified as a parameter.
This is equivalent to Fn.on(Types.listOf(type))
type
- the type to be used
public static <K,V> Level0MapOperator<Map<K,V>,K,V> onMapOf(org.javaruntype.type.Type<K> keyType, org.javaruntype.type.Type<V> valueType)
Creates a function expression for building a function operating on a target object of type Map<K,V>, being both Type<K> and Type<V> type specified as parameters.
This is equivalent to Fn.on(Types.mapOf(keyType, valueType))
keyType
- the type to be used for keysvalueType
- the type to be used for values
public static <T> Level0SetOperator<Set<T>,T> onSetOf(org.javaruntype.type.Type<T> type)
Creates a function expression for building a function operating on a target object of type Set<T>, being Type<T> a type specified as a parameter.
This is equivalent to Fn.on(Types.setOf(type))
type
- the type to be used
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |