T - generic type of sourceR - generic type of resultpublic interface ChronoFunction<T,R> extends Function<T,R>
Represents any temporal query using the strategy pattern approach.
ChronoEntity.get(ChronoFunction)| Modifier and Type | Method and Description |
|---|---|
R |
apply(T context)
Reads and evaluates given time value context to a specific result
of type R.
|
R apply(T context)
Reads and evaluates given time value context to a specific result of type R.
Will be called by ChronoEntity.get(ChronoFunction).
Concrete implementations must document if they rather yield
null or throw an exception in case of undefined results.
apply in interface Function<T,R>context - time context to be evaluatednull if undefinedChronoException - if this query is not executableCopyright © 2014–2015. All rights reserved.