Package overit.geocall.lang
Class ChapterHandler
This class implements an handler for a
Chapter object, and it's used by the SupplierChain class
to supply the translatins of a string and to retireve all the key-value pairs, stored in the chpater.-
Constructor Summary
Constructors -
Method Summary
Methods inherited from class overit.geocall.util.SupplierChain.Handler
hasNext, next, stream
-
Constructor Details
-
Method Details
-
get
Description copied from class:SupplierChain.HandlerGet the value from this handler if it is able to handle the input parameter. Implementation note: the subclass should invoke the super implementation if it can not handle the request{@literal @}Override public O get(I input) { if (!canHandle(input)) return super.get(input); // handle the request }- Overrides:
getin classSupplierChain.Handler<String,String> - Parameters:
source- the input parameter- Returns:
- the output value or null if the input can not be handled
-
getAll
Description copied from class:SupplierChain.HandlerGet the stream containing all values that this handler can manage. For example, if this handler manages the translations contained in a dictionary, this method should return a stream for all dictionary entries.- Overrides:
getAllin classSupplierChain.Handler<String,String> - Returns:
- the stream containing all the output values, or
Stream.empty()if there's none.
-