All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface set.Element

public interface Element
Elements for sets. Elements of sets must be linearly ordered. In addition, the implementation of sets assumes that an element is immutable. Repeated applications of a predicate to a pair of elements, must result is the same value.

See Also:
Set

Method Index

 o less(Element)
Is this element less than some other element?
 o same(Element)
Is this element equal to some other element?

Methods

 o same
 public abstract boolean same(Element e)
Is this element equal to some other element?

Parameters:
e - the element to compare with
Returns:
true if the elements are the same
 o less
 public abstract boolean less(Element e)
Is this element less than some other element?

Parameters:
e - the element to compare with
Returns:
true if this element is the less than the other

All Packages  Class Hierarchy  This Package  Previous  Next  Index