Package cz.o2.proxima.core.util
Class NamePattern
- java.lang.Object
-
- cz.o2.proxima.core.util.NamePattern
-
- All Implemented Interfaces:
java.io.Serializable
@Internal public class NamePattern extends java.lang.Object implements java.io.Serializable
Pattern matcher for syntax used for patterns in input config. Accepted patterns can contain wildcards (*) which are then translated intojava.util.regex.Patterns.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description NamePattern(java.lang.String pattern)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)inthashCode()booleanmatches(java.lang.String what)Match input string against the pattern.
-
-
-
Method Detail
-
matches
public boolean matches(java.lang.String what)
Match input string against the pattern.- Parameters:
what- the string to match- Returns:
trueif matches
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
-