|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Object org.op4j.functions.FnMap
public final class FnMap
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.
Method Summary | ||
---|---|---|
static
|
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 |
---|
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.
keyType
- the type of the map key componentsvalueType
- the type of the map value components
public static FnMapOf<Object,Object> ofObjectObject()
Specifies the map as a Map<Object,Object>, so that the adequate map functions can be offered.
public static FnMapOf<String,String> ofStringString()
Specifies the map as a Map<String,String>, so that the adequate map functions can be offered.
public static FnMapOf<Integer,String> ofIntegerString()
Specifies the map as a Map<Integer,String>, so that the adequate map functions can be offered.
public static FnMapOf<String,Integer> ofStringInteger()
Specifies the map as a Map<String,Integer>, so that the adequate map functions can be offered.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |