|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectariba.util.core.Function<K>
public abstract class Function<K>
Generic class that represents a function returning a type K.
| Constructor Summary | |
|---|---|
Function()
|
|
| Method Summary | ||
|---|---|---|
abstract K |
evaluate(Object... arguments)
Evaluates the supplied arguments returning an instance of
type K. |
|
boolean |
hasSameValue(Collection elements)
Returns true if each of the elements in elements
has the same value according to this function. |
|
|
split(Collection<V> collection)
Efficiently, splits the supplied collection of a value type
V returning a map which is a partition of the collection using
this function. |
|
|
splitInto(Collection<V> collection,
Map<K,List<V>> result)
Efficiently, splits the supplied collection of a value type
V returning a map which is a partition of the collection using
this function. |
|
|
splitInto(Collection<V> collection,
Map<K,List<V>> result,
boolean includeNulls)
Efficiently, splits the supplied collection of a value type
V returning a map which is a partition of the collection using
this function. |
|
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public Function()
| Method Detail |
|---|
public abstract K evaluate(Object... arguments)
arguments returning an instance of
type K.
arguments - the arguments to be evaulated
Kpublic boolean hasSameValue(Collection elements)
true if each of the elements in elements
has the same value according to this function.
public <V> void splitInto(Collection<V> collection,
Map<K,List<V>> result,
boolean includeNulls)
collection of a value type
V returning a map which is a partition of the collection using
this function.
Specifically, this method splits collection into sub-lists
each of which has the same value when evaluated by this function.
public <V> void splitInto(Collection<V> collection,
Map<K,List<V>> result)
collection of a value type
V returning a map which is a partition of the collection using
this function.
Specifically, this method splits collection into sub-lists
each of which has the same value when evaluated by this function.
public <V> Map<K,List<V>> split(Collection<V> collection)
collection of a value type
V returning a map which is a partition of the collection using
this function.
Specifically, this method splits collection into sub-lists
each of which has the same value when evaluated by this function.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||