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.Pattern
s.- 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 boolean
equals(java.lang.Object obj)
int
hashCode()
boolean
matches(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:
true
if matches
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
-