Package classycle.util
Class TrueStringPattern
- java.lang.Object
-
- classycle.util.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
-
-
Constructor Summary
Constructors Constructor Description TrueStringPattern()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
matches(java.lang.String string)
Returnstrue
independent of the argument.java.lang.String
toString()
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String string)
Returnstrue
independent of the argument.- Specified by:
matches
in interfaceStringPattern
- Parameters:
string
- String to be matched. Can be null.
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-