All Packages Class Hierarchy This Package Previous Next Index
Any class implementing ComparatorBased should provide require that the class
be constructed with a Comparator (for example, as a parameter to the
constructor), and should not allow the class to be created without one (for
example, no zero argument constructor). Any class allowing itself to be
constructed without a comparator should throw an
InvalidComparatorException
from any method that fails because a
comparator has not been set.
Comparator
used by this
ComparatorBased
container.
public abstract Comparator setComparator(Comparator c) throws NotEmptyContainerException
jdsl.core.api.Comparator
appropriate to the
elements stored by the container
setComparator(.)
is called.
public abstract Comparator comparator()
Comparator
used by this
ComparatorBased
container.
jdsl.core.api.Comparator
appropriate to the
elements stored by the container
All Packages Class Hierarchy This Package Previous Next Index