public interface BuildableStringOptionalFunction<T> extends BuildableComparableOptionalFunction<T,java.lang.String>
Optional<String>
result, and
supports building derived functional types.Modifier and Type | Method and Description |
---|---|
default BuildableComparableOptionalFunction<T,java.lang.Integer> |
length()
Returns a function that maps the length of the extracted strings.
|
default BuildablePredicate<T> |
startsWith(java.lang.String prefix)
Returns a predicate that tests the strings generated by
this to see
if they start with the supplied constant string. |
emptiesFirst, emptiesLast, isGreaterThan, isGreaterThanOrEqualTo, isLessThan, isLessThanOrEqualTo
is
default BuildableComparableOptionalFunction<T,java.lang.Integer> length()
default BuildablePredicate<T> startsWith(java.lang.String prefix)
this
to see
if they start with the supplied constant string. If this
is a function
that generates an empty Optional
, the returned predicate would always
evaluate to falseprefix
- constant prefix string