T - generic type of sourceR - generic type of resultpublic interface ChronoFunction<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.
context - time context to be evaluatednull if undefinedChronoException - if this query is not executable