Interface SliceParser<T>

Type Parameters:
T - the parsed value type
All Superinterfaces:
Function<CharSequence,T>
All Known Subinterfaces:
TypeParser<T>
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface SliceParser<T> extends Function<CharSequence,T>
Parses a slice of character data without requiring callers to materialize a String or create a CharSequence view first.

Any method with the same shape can bind directly as a method reference. For example, Currencys.parse(CharSequence, int, int) can be used wherever a SliceParser<Currency> is expected:

 Currency currency = Sentence.firstIn(Currencys::parse, "pay USD 120 tomorrow");