org.op4j.functions
Class FnMap

Object
  extended by org.op4j.functions.FnMap

public final class FnMap
extends Object

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

Since:
1.0
Author:
Daniel Fernández

Method Summary
static
<K,V> FnMapOf<K,V>
of(org.javaruntype.type.Type<K> keyType, org.javaruntype.type.Type<V> valueType)
           Specifies the type of the map components (key+value), so that the adequate map functions can be offered.
static FnMapOf<Integer,String> ofIntegerString()
           Specifies the map as a Map<Integer,String>, so that the adequate map functions can be offered.
static FnMapOf<Object,Object> ofObjectObject()
           Specifies the map as a Map<Object,Object>, so that the adequate map functions can be offered.
static FnMapOf<String,Integer> ofStringInteger()
           Specifies the map as a Map<String,Integer>, so that the adequate map functions can be offered.
static FnMapOf<String,String> ofStringString()
           Specifies the map as a Map<String,String>, so that the adequate map 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 <K,V> FnMapOf<K,V> of(org.javaruntype.type.Type<K> keyType,
                                    org.javaruntype.type.Type<V> valueType)

Specifies the type of the map components (key+value), so that the adequate map functions can be offered.

Parameters:
keyType - the type of the map key components
valueType - the type of the map value components
Returns:
the adequate set function hub

ofObjectObject

public static FnMapOf<Object,Object> ofObjectObject()

Specifies the map as a Map<Object,Object>, so that the adequate map functions can be offered.

Returns:
the adequate map function hub

ofStringString

public static FnMapOf<String,String> ofStringString()

Specifies the map as a Map<String,String>, so that the adequate map functions can be offered.

Returns:
the adequate map function hub

ofIntegerString

public static FnMapOf<Integer,String> ofIntegerString()

Specifies the map as a Map<Integer,String>, so that the adequate map functions can be offered.

Returns:
the adequate map function hub

ofStringInteger

public static FnMapOf<String,Integer> ofStringInteger()

Specifies the map as a Map<String,Integer>, so that the adequate map functions can be offered.

Returns:
the adequate map function hub


Copyright © 2012 The OP4J team. All Rights Reserved.