/** * @author Gary Yngve * @version 2/10/06 */ import java.util.Comparator; public interface BasicOrderedSet extends BasicSet { /** * Returns a set that has a restricted range of the original set. * @param fromElement. Lower bound, included. * @param toElement. Upper bound, excluded. * @return BasicOrderedSet with restricted range. */ public BasicOrderedSet subSet(Object fromElement, Object toElement); /** * Returns the comparator for the set. * @return the Comparator that the set uses to order its elements. */ public Comparator comparator(); }