Class StartsWithPredicate

  • All Implemented Interfaces:
    java.util.function.Predicate<java.lang.String>

    public final class StartsWithPredicate
    extends java.lang.Object
    implements java.util.function.Predicate<java.lang.String>
    Predicate that determines if the input string starts with the provided test string, case-insensitively.
    • Constructor Summary

      Constructors 
      Constructor Description
      StartsWithPredicate​(java.lang.String test)
      Create an new predicate.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(@Nullable java.lang.String input)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.function.Predicate

        and, negate, or
    • Constructor Detail

      • StartsWithPredicate

        public StartsWithPredicate​(java.lang.String test)
        Create an new predicate.
        Parameters:
        test - The string to test input against
    • Method Detail

      • test

        public boolean test​(@Nullable java.lang.String input)
        Specified by:
        test in interface java.util.function.Predicate<java.lang.String>