mondrian.util
Interface PartiallyOrderedSet.Ordering<E>

Type Parameters:
E - Element type
Enclosing class:
PartiallyOrderedSet<E>

public static interface PartiallyOrderedSet.Ordering<E>

Ordering relation.

To obey the constraints of the partially-ordered set, the function must be consistent with the reflexive, anti-symmetric, and transitive properties required by a partially ordered set.

For instance, if ordering(foo, foo) returned false for any not-null value of foo, it would violate the reflexive property.

If an ordering violates any of these required properties, the behavior of a PartiallyOrderedSet is unspecified. (But mayhem is likely.)


Method Summary
 boolean lessThan(E e1, E e2)
          Returns whether element e1 is ≤ e2 according to the relation that defines a partially-ordered set.
 

Method Detail

lessThan

boolean lessThan(E e1,
                 E e2)
Returns whether element e1 is ≤ e2 according to the relation that defines a partially-ordered set.

Parameters:
e1 - Element 1
e2 - Element 2
Returns:
Whether element 1 is ≤ element 2

Get Mondrian at SourceForge.net. Fast, secure and free Open Source software downloads