Interface BuildableStringOptionalFunction<T>
- All Superinterfaces:
BuildableComparableOptionalFunction<T,,String> BuildableOptionalFunction<T,,String> ComparableFunction<T,,String> Function<T,Optional<String>>
public interface BuildableStringOptionalFunction<T>
extends BuildableComparableOptionalFunction<T,String>
A function of one argument that generates an
Optional<String> result, and
supports building derived functional types.-
Method Summary
Modifier and TypeMethodDescriptiondefault BuildableComparableOptionalFunction<T,Integer> length()Returns a function that maps the length of the extracted strings.default BuildablePredicate<T>startsWith(String prefix) Returns a predicate that tests the strings generated bythisto see if they start with the supplied constant string.Methods inherited from interface com.terracottatech.store.function.BuildableComparableOptionalFunction
emptiesFirst, emptiesLast, is, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualToMethods inherited from interface com.terracottatech.store.function.BuildableOptionalFunction
in, in
-
Method Details
-
length
Returns a function that maps the length of the extracted strings.- Returns:
- a string length function
-
startsWith
Returns a predicate that tests the strings generated bythisto see if they start with the supplied constant string. Ifthisis a function that generates an emptyOptional, the returned predicate would always evaluate to false- Parameters:
prefix- constant prefix string- Returns:
- a prefix predicate
-