private final boolean checkString(String s,Condition condition){
  String value=condition.getValue();
  assert (value != null);
  FilterOp op=condition.getConditionType();
switch (op) {
case NULL:
{
      return (s == null);
    }
case NOT_NULL:
{
    return (s != null);
  }
}
if (s == null) {
return false;
}
final int comp=s.compareTo(value);
switch (op) {
case EQUALS:
{
  return (comp == 0);
}
case NOT_EQUALS:
{
return (comp != 0);
}
case GREATER:
{
return (comp > 0);
}
case GREATER_EQ:
{
return (comp >= 0);
}
case LESS:
{
return (comp < 0);
}
case LESS_EQ:
{
return (comp <= 0);
}
default :
{
return false;
}
}
}

private final boolean checkString ( String s , Condition condition ) { String value = condition . getValue ( ) ; assert ( value != null ) ; FilterOp op = condition . getConditionType ( ) ; switch ( op ) { case NULL : { return ( s == null ) ; } case NOT_NULL : { return ( s != null ) ; } } if ( s == null ) { return false ; } final int comp = s . compareTo ( value ) ; switch ( op ) { case EQUALS : { return ( comp == 0 ) ; } case NOT_EQUALS : { return ( comp != 0 ) ; } case GREATER : { return ( comp > 0 ) ; } case GREATER_EQ : { return ( comp >= 0 ) ; } case LESS : { return ( comp < 0 ) ; } case LESS_EQ : { return ( comp <= 0 ) ; } default : { return false ; } } }
check the given string value for the specified condition
