Interface BuildableStringFunction<T>

All Superinterfaces:
BuildableComparableFunction<T,String>, BuildableFunction<T,String>, ComparableFunction<T,String>, Function<T,String>

public interface BuildableStringFunction<T> extends BuildableComparableFunction<T,String>
A function of one argument that generates a String result, and supports building derived functional types.
  • Method Details

    • length

      default BuildableToIntFunction<T> length()
      Returns a function that maps the length of the extracted strings.
      Returns:
      a string length function
    • startsWith

      default BuildablePredicate<T> startsWith(String prefix)
      Returns a predicate that tests the strings generated by this to see if they start with the supplied constant string.
      Parameters:
      prefix - constant prefix string
      Returns:
      a prefix predicate