Class MinMaxSet<E>

java.lang.Object
de.cxp.ocs.util.MinMaxSet<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>, Set<E>

public class MinMaxSet<E> extends Object implements Set<E>
A set that only returns the min and the max value (based on natural ordering) of all added values. If only one value is added, it is the min and the max value, however if returned as iterator or array, the set will only contain that one value.