public class SearchContext extends Object
Constructor and Description |
---|
SearchContext()
Default constructor.
|
Modifier and Type | Method and Description |
---|---|
<T> T |
get(SearchKey<T> key,
T defaultVal)
Gets a value from the context by a given key.
|
<T> void |
put(SearchKey<T> key,
T value)
Puts a key in the context.
|
String |
toString() |
public <T> T get(SearchKey<T> key, T defaultVal)
T
- - the value typekey
- - the keydefaultVal
- - the default valuepublic <T> void put(SearchKey<T> key, T value)
T
- - the value typekey
- - the keyvalue
- - the value