com.espertech.esper.util
Class LikeUtil

java.lang.Object
  extended by com.espertech.esper.util.LikeUtil
All Implemented Interfaces:
java.io.Serializable

public class LikeUtil
extends java.lang.Object
implements java.io.Serializable

Utility for performing a SQL Like comparsion.

See Also:
Serialized Form

Constructor Summary
LikeUtil(java.lang.String pattern, java.lang.Character escape, boolean ignorecase)
          Ctor.
 
Method Summary
 boolean compare(java.lang.String compareString)
          Execute the string.
 void resetPattern(java.lang.String pattern)
          Resets the search pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LikeUtil

public LikeUtil(java.lang.String pattern,
                java.lang.Character escape,
                boolean ignorecase)
Ctor.

Parameters:
pattern - is the SQL-like pattern to
escape - is the escape character
ignorecase - is true to ignore the case, or false if not
Method Detail

compare

public boolean compare(java.lang.String compareString)
Execute the string.

Parameters:
compareString - is the string to compare
Returns:
true if pattern matches, or false if not

resetPattern

public void resetPattern(java.lang.String pattern)
Resets the search pattern.

Parameters:
pattern - is the new pattern to match against

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