com.espertech.esper.type
Class StringPatternSetRegex

java.lang.Object
  extended by com.espertech.esper.type.StringPatternSetRegex
All Implemented Interfaces:
StringPatternSet, java.io.Serializable

public class StringPatternSetRegex
extends java.lang.Object
implements StringPatternSet

Regular expression matcher.

See Also:
Serialized Form

Constructor Summary
StringPatternSetRegex(java.lang.String patternText)
          Ctor.
 
Method Summary
 boolean equals(java.lang.Object o)
           
 int hashCode()
           
 boolean match(java.lang.String stringToMatch)
          Match the string returning true for a match, using regular expression semantics.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StringPatternSetRegex

public StringPatternSetRegex(java.lang.String patternText)
Ctor.

Parameters:
patternText - regex to match
Method Detail

match

public boolean match(java.lang.String stringToMatch)
Match the string returning true for a match, using regular expression semantics.

Specified by:
match in interface StringPatternSet
Parameters:
stringToMatch - string to match
Returns:
true for match

equals

public boolean equals(java.lang.Object o)
Overrides:
equals in class java.lang.Object

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

© 2006-2015 EsperTech Inc.
All rights reserved.
Visit us at espertech.com