public class CachedCrnStringPatternMatcher<T>
extends java.lang.Object
Constructor and Description |
---|
CachedCrnStringPatternMatcher(int capacity)
Create a cache with the desired capacity.
|
Modifier and Type | Method and Description |
---|---|
T |
match(java.lang.String crnString)
Return the stored value for this CRN, or null if there is no match
|
void |
setPattern(java.lang.String crnString,
T value) |
int |
size() |
java.lang.String |
toString() |
public CachedCrnStringPatternMatcher(int capacity)
public void setPattern(java.lang.String crnString, T value) throws CrnSyntaxException
CrnSyntaxException
public T match(java.lang.String crnString)
public int size()
public java.lang.String toString()
toString
in class java.lang.Object