{
Object rval = getRaw( key );
if ( null == rval ) // key does not exist so return nothing
{
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();
}
set = ( TreeSet ) getRaw( key );
if ( set == null )
{
return new EmptyEnumeration();
}
if ( isGreaterThan )
{
return new TupleEnumeration( key,