org.apache.s4.core
Class Key<T extends Event>
java.lang.Object
org.apache.s4.core.Key<T>
public class Key<T extends Event>
- extends java.lang.Object
The Key class is used to get the value of the key on a specific type of event. This is done to abstract all the
complexity required to get the value. The method for getting the value is implemented in a method of an object of
type KeyFinder.
The application programmer provides the events and the corresponding finders. The framework will use it to key on
events.
Constructor Summary |
Key(KeyFinder<T> finder,
java.lang.String separator)
|
Method Summary |
java.lang.String |
get(T event)
|
java.util.List<java.lang.String> |
getList(T event)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Key
public Key(KeyFinder<T> finder,
java.lang.String separator)
getList
public java.util.List<java.lang.String> getList(T event)
get
public java.lang.String get(T event)