org.op4j.functions
Class FnArray

Object
  extended by org.op4j.functions.FnArray

public class FnArray
extends Object

Function hub class for functions on arrays. As these functions have to be parameterized depending on the type of the array elements, this function hub class does not contain the real functions, but instead provides methods for specifying the type of the array components so that the appropiate functions are offered.

Since:
1.0
Author:
Daniel Fernández

Method Summary
static
<T> FnArrayOf<T>
of(org.javaruntype.type.Type<T> type)
           Specifies the type of the array components, so that the adequate array functions can be offered.
static
<T> FnArrayOfArrayOf<T>
ofArrayOf(org.javaruntype.type.Type<T> type)
           
static FnArrayOf<BigDecimal> ofBigDecimal()
           Specifies the array as a BigDecimal[], so that the adequate array functions can be offered.
static FnArrayOf<BigInteger> ofBigInteger()
           Specifies the array as a BigInteger[], so that the adequate array functions can be offered.
static FnArrayOf<Boolean> ofBoolean()
           Specifies the array as a Boolean[], so that the adequate array functions can be offered.
static FnArrayOf<Byte> ofByte()
           Specifies the array as a Byte[], so that the adequate array functions can be offered.
static FnArrayOf<Calendar> ofCalendar()
           Specifies the array as a Calendar[], so that the adequate array functions can be offered.
static FnArrayOf<Character> ofCharacter()
           Specifies the array as a Character[], so that the adequate array functions can be offered.
static FnArrayOf<Date> ofDate()
           Specifies the array as a Date[], so that the adequate array functions can be offered.
static FnArrayOf<Double> ofDouble()
           Specifies the array as a Double[], so that the adequate array functions can be offered.
static FnArrayOf<Float> ofFloat()
           Specifies the array as a Float[], so that the adequate array functions can be offered.
static FnArrayOf<Integer> ofInteger()
           Specifies the array as an Integer[], so that the adequate array functions can be offered.
static
<T> FnArrayOfListOf<T>
ofListOf(org.javaruntype.type.Type<T> type)
           
static FnArrayOf<Long> ofLong()
           Specifies the array as a Long[], so that the adequate array functions can be offered.
static FnArrayOf<Object> ofObject()
           Specifies the array as an Object[], so that the adequate array functions can be offered.
static
<T> FnArrayOfSetOf<T>
ofSetOf(org.javaruntype.type.Type<T> type)
           
static FnArrayOf<Short> ofShort()
           Specifies the array as a Short[], so that the adequate array functions can be offered.
static FnArrayOf<String> ofString()
           Specifies the array as a String[], so that the adequate array functions can be offered.
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

of

public static <T> FnArrayOf<T> of(org.javaruntype.type.Type<T> type)

Specifies the type of the array components, so that the adequate array functions can be offered.

Parameters:
type - the type of the array components
Returns:
the adequate array function hub

ofArrayOf

public static <T> FnArrayOfArrayOf<T> ofArrayOf(org.javaruntype.type.Type<T> type)

ofListOf

public static <T> FnArrayOfListOf<T> ofListOf(org.javaruntype.type.Type<T> type)

ofSetOf

public static <T> FnArrayOfSetOf<T> ofSetOf(org.javaruntype.type.Type<T> type)

ofObject

public static FnArrayOf<Object> ofObject()

Specifies the array as an Object[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofBigInteger

public static FnArrayOf<BigInteger> ofBigInteger()

Specifies the array as a BigInteger[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofBigDecimal

public static FnArrayOf<BigDecimal> ofBigDecimal()

Specifies the array as a BigDecimal[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofBoolean

public static FnArrayOf<Boolean> ofBoolean()

Specifies the array as a Boolean[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofByte

public static FnArrayOf<Byte> ofByte()

Specifies the array as a Byte[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofCharacter

public static FnArrayOf<Character> ofCharacter()

Specifies the array as a Character[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofCalendar

public static FnArrayOf<Calendar> ofCalendar()

Specifies the array as a Calendar[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofDate

public static FnArrayOf<Date> ofDate()

Specifies the array as a Date[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofDouble

public static FnArrayOf<Double> ofDouble()

Specifies the array as a Double[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofFloat

public static FnArrayOf<Float> ofFloat()

Specifies the array as a Float[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofInteger

public static FnArrayOf<Integer> ofInteger()

Specifies the array as an Integer[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofLong

public static FnArrayOf<Long> ofLong()

Specifies the array as a Long[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofShort

public static FnArrayOf<Short> ofShort()

Specifies the array as a Short[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub

ofString

public static FnArrayOf<String> ofString()

Specifies the array as a String[], so that the adequate array functions can be offered.

Returns:
the adequate array function hub


Copyright © 2012 The OP4J team. All Rights Reserved.