common-util

local.tomas.expr.eval
Class Like

java.lang.Object
  extended by local.tomas.expr.eval.Like

public class Like
extends Object

Evaluator for LIKE operator.

Author:
tomas.teubner

Method Summary
static boolean check(String str, String pattern)
          Check if string is LIKE a pattern.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

check

public static boolean check(String str,
                            String pattern)
Check if string is LIKE a pattern.

Parameters:
str - a string
pattern - a LIKE pattern
Returns:
true if string matches the pattern

common-util

Copyright © 2005-2007 Tomas Teubner. All Rights Reserved.