/** * @param Element type. * Abstract class for simple functional sets just offering a characteristic function realized by the * contains method. */ public abstract class SimpleFunctionalSet { /** * The remaining set. */ private final SimpleFunctionalSet set; /** * @param s The remaining set. */ public SimpleFunctionalSet(SimpleFunctionalSet s) { this.set = s; } /** * Returns true if this set contains the specified element. * More formally, contains(o) returns true if and only if this set * contains an element e such that * (o==null ? e==null : e.equals(o)). * * @param o Element whose presence in this set is to be tested. * @return true if this set contains the specified element. */ public abstract boolean contains(Object o); /** * @return The remaining set. */ public SimpleFunctionalSet getRemainingSet() { return this.set; } }