Class OnlyHasSupportedCharactersPredicate

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

    public class OnlyHasSupportedCharactersPredicate
    extends java.lang.Object
    implements java.util.function.Predicate<java.lang.String>
    Predicate to test if a given string is a supported one.

    Returns TRUE if the input is composed of alphanumeric or hyphen characters; FALSE otherwise.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean test​(java.lang.String target)  
      • 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

      • OnlyHasSupportedCharactersPredicate

        public OnlyHasSupportedCharactersPredicate()
    • Method Detail

      • test

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