Class TrueStringPattern

  • All Implemented Interfaces:
    StringPattern

    public class TrueStringPattern
    extends java.lang.Object
    implements StringPattern
    String pattern which return true in any case.
    Author:
    Franz-Josef Elmer
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      boolean matches​(java.lang.String string)
      Returns true independent of the argument.
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TrueStringPattern

        public TrueStringPattern()
    • Method Detail

      • matches

        public boolean matches​(java.lang.String string)
        Returns true independent of the argument.
        Specified by:
        matches in interface StringPattern
        Parameters:
        string - String to be matched. Can be null.
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object