org.op4j.functions
Class Fn

Object
  extended by org.op4j.functions.Fn

public final class Fn
extends Object

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.

Since:
1.0
Author:
Daniel Fernández

Method Summary
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.
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.
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
<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.
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
<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.
static Level0GenericUniqOperator<Object,Object> onObject()
           Creates a function expression for building a function operating on a target object of type Object.
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.
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

on

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:

Parameters:
type - the type of the object on which the expression should start
Returns:
an operator, ready for chaining

onObject

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)

Returns:
an operator, ready for chaining

onArrayOfObject

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)

Returns:
an operator, ready for chaining

onListOfObject

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)

Returns:
an operator, ready for chaining

onSetOfObject

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)

Returns:
an operator, ready for chaining

onBigInteger

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)

Returns:
an operator, ready for chaining

onArrayOfBigInteger

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)

Returns:
an operator, ready for chaining

onListOfBigInteger

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)

Returns:
an operator, ready for chaining

onSetOfBigInteger

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)

Returns:
an operator, ready for chaining

onBigDecimal

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)

Returns:
an operator, ready for chaining

onArrayOfBigDecimal

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)

Returns:
an operator, ready for chaining

onListOfBigDecimal

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)

Returns:
an operator, ready for chaining

onSetOfBigDecimal

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)

Returns:
an operator, ready for chaining

onBoolean

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)

Returns:
an operator, ready for chaining

onArrayOfBoolean

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)

Returns:
an operator, ready for chaining

onListOfBoolean

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)

Returns:
an operator, ready for chaining

onSetOfBoolean

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)

Returns:
an operator, ready for chaining

onByte

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)

Returns:
an operator, ready for chaining

onArrayOfByte

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)

Returns:
an operator, ready for chaining

onListOfByte

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)

Returns:
an operator, ready for chaining

onSetOfByte

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)

Returns:
an operator, ready for chaining

onCharacter

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)

Returns:
an operator, ready for chaining

onArrayOfCharacter

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)

Returns:
an operator, ready for chaining

onListOfCharacter

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)

Returns:
an operator, ready for chaining

onSetOfCharacter

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)

Returns:
an operator, ready for chaining

onCalendar

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)

Returns:
an operator, ready for chaining

onArrayOfCalendar

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)

Returns:
an operator, ready for chaining

onListOfCalendar

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)

Returns:
an operator, ready for chaining

onSetOfCalendar

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)

Returns:
an operator, ready for chaining

onDate

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)

Returns:
an operator, ready for chaining

onArrayOfDate

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)

Returns:
an operator, ready for chaining

onListOfDate

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)

Returns:
an operator, ready for chaining

onSetOfDate

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)

Returns:
an operator, ready for chaining

onDouble

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)

Returns:
an operator, ready for chaining

onArrayOfDouble

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)

Returns:
an operator, ready for chaining

onListOfDouble

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)

Returns:
an operator, ready for chaining

onSetOfDouble

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)

Returns:
an operator, ready for chaining

onFloat

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)

Returns:
an operator, ready for chaining

onArrayOfFloat

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)

Returns:
an operator, ready for chaining

onListOfFloat

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)

Returns:
an operator, ready for chaining

onSetOfFloat

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)

Returns:
an operator, ready for chaining

onInteger

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)

Returns:
an operator, ready for chaining

onArrayOfInteger

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)

Returns:
an operator, ready for chaining

onListOfInteger

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)

Returns:
an operator, ready for chaining

onSetOfInteger

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)

Returns:
an operator, ready for chaining

onLong

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)

Returns:
an operator, ready for chaining

onArrayOfLong

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)

Returns:
an operator, ready for chaining

onListOfLong

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)

Returns:
an operator, ready for chaining

onSetOfLong

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)

Returns:
an operator, ready for chaining

onShort

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)

Returns:
an operator, ready for chaining

onArrayOfShort

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)

Returns:
an operator, ready for chaining

onListOfShort

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)

Returns:
an operator, ready for chaining

onSetOfShort

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)

Returns:
an operator, ready for chaining

onString

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)

Returns:
an operator, ready for chaining

onArrayOfString

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)

Returns:
an operator, ready for chaining

onListOfString

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)

Returns:
an operator, ready for chaining

onSetOfString

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)

Returns:
an operator, ready for chaining

onArrayOf

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))

Parameters:
type - the type to be used
Returns:
an operator, ready for chaining

onListOf

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))

Parameters:
type - the type to be used
Returns:
an operator, ready for chaining

onMapOf

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))

Parameters:
keyType - the type to be used for keys
valueType - the type to be used for values
Returns:
an operator, ready for chaining

onSetOf

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))

Parameters:
type - the type to be used
Returns:
an operator, ready for chaining


Copyright © 2012 The OP4J team. All Rights Reserved.