{
return new EmptyEnumeration();
}
else if ( val.equals( rval ) ) // val == rval return tuple
{
return new SingletonEnumeration( new Tuple( key, val ) );
}
// val >= val and test is for greater then return tuple
else if ( comparator.compareValue( val, rval ) >= 1 && isGreaterThan )
{
return new SingletonEnumeration( new Tuple( key, val ) );
}
// val <= val and test is for lesser then return tuple
else if ( comparator.compareValue( val, rval ) <= 1 && ! isGreaterThan )
{
return new SingletonEnumeration( new Tuple( key, val ) );
}
return new EmptyEnumeration();
}