public class DisjointNode<Q> extends Object implements Comparable<DisjointNode<Q>>, Serializable
| Modifier and Type | Field and Description |
|---|---|
protected Q |
object |
protected DisjointNode<Q> |
parent |
protected int |
rank |
| Constructor and Description |
|---|
DisjointNode() |
DisjointNode(Q object) |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(DisjointNode<Q> o) |
boolean |
equals(Object obj) |
Q |
getObject() |
DisjointNode<Q> |
getParent() |
int |
getRank() |
int |
hashCode() |
void |
increment() |
void |
setObject(Q object) |
void |
setParent(DisjointNode<Q> parent) |
void |
setRank(int rank) |
protected DisjointNode<Q> parent
protected Q object
protected int rank
public DisjointNode()
public DisjointNode(Q object)
public void increment()
public DisjointNode<Q> getParent()
public void setParent(DisjointNode<Q> parent)
parent - public Q getObject()
public void setObject(Q object)
object - public int getRank()
public void setRank(int rank)
rank - public int compareTo(DisjointNode<Q> o)
compareTo in interface Comparable<DisjointNode<Q>>Copyright © 2018 Terra Software Informatics LLC.. All rights reserved.