public abstract class AbstractOrder<A> extends java.lang.Object implements Order<A>
Constructor and Description |
---|
AbstractOrder() |
Modifier and Type | Method and Description |
---|---|
abstract Order<A> |
clone() |
void |
direction(boolean ascending)
the ordering direction can be changed at any time
|
boolean |
equals(java.lang.Object obj)
used to compare different order objects; they may define the same ordering
|
int |
hashCode() |
A |
largest(A a,
A b) |
long |
partition(A key,
int forks) |
void |
rotate(A newzero)
defines that the ordering rotates, and sets the zero point for the rotation
|
A |
smallest(A a,
A b) |
A |
zero()
returns the zero point of the Ordering; null if not defined
|
protected A zero
protected boolean asc
public A zero()
Order
public void direction(boolean ascending)
Order
public void rotate(A newzero)
Order
public boolean equals(java.lang.Object obj)
Order
public int hashCode()