org.eobjects.metamodel.util
Class HasNameMapper
java.lang.Object
org.eobjects.metamodel.util.HasNameMapper
- All Implemented Interfaces:
- Serializable, Func<HasName,String>
public final class HasNameMapper
- extends Object
- implements Func<HasName,String>, Serializable
Func useful for mapping HasName instances to names, using
CollectionUtils.map(Object[], Func) and
CollectionUtils.map(Iterable, Func).
- Author:
- Kasper Sørensen
- See Also:
- Serialized Form
|
Method Summary |
String |
eval(HasName arg)
Evaluates an element and transforms it using this function. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
HasNameMapper
public HasNameMapper()
eval
public String eval(HasName arg)
- Description copied from interface:
Func
- Evaluates an element and transforms it using this function.
- Specified by:
eval in interface Func<HasName,String>
- Parameters:
arg - the input given to the function
- Returns:
- the output result of the function
Copyright © 2007-2013. All Rights Reserved.