D
- the type of Distance used by the ClusterOrderEntrypublic class GenericClusterOrderEntry<D extends Distance<D>> extends Object implements Comparable<ClusterOrderEntry<D>>, ClusterOrderEntry<D>
Modifier and Type | Field and Description |
---|---|
private DBID |
objectID
The id of the entry.
|
private DBID |
predecessorID
The id of the entry's predecessor.
|
private D |
reachability
The reachability of the entry.
|
Constructor and Description |
---|
GenericClusterOrderEntry(DBID objectID,
DBID predecessorID,
D reachability)
Creates a new entry in a cluster order with the specified parameters.
|
Modifier and Type | Method and Description |
---|---|
int |
compareTo(ClusterOrderEntry<D> o) |
boolean |
equals(Object o)
Indicates whether some other object is "equal to" this one.
|
DBID |
getID()
Returns the object id of this entry.
|
DBID |
getPredecessorID()
Returns the id of the predecessor of this entry if this entry has a
predecessor, null otherwise.
|
D |
getReachability()
Returns the reachability distance of this entry
|
int |
hashCode()
Returns a hash code value for the object.
|
String |
toString()
Returns a string representation of the object.
|
private DBID objectID
private DBID predecessorID
public GenericClusterOrderEntry(DBID objectID, DBID predecessorID, D reachability)
objectID
- the id of the entrypredecessorID
- the id of the entry's predecessorreachability
- the reachability of the entrypublic boolean equals(Object o)
public int hashCode()
public String toString()
public DBID getID()
getID
in interface ClusterOrderEntry<D extends Distance<D>>
public DBID getPredecessorID()
getPredecessorID
in interface ClusterOrderEntry<D extends Distance<D>>
public D getReachability()
getReachability
in interface ClusterOrderEntry<D extends Distance<D>>
public int compareTo(ClusterOrderEntry<D> o)
compareTo
in interface Comparable<ClusterOrderEntry<D extends Distance<D>>>