tuffy.util
Class UnionFind.Record<E>

java.lang.Object
  extended by tuffy.util.UnionFind.Record<E>
Enclosing class:
UnionFind<E>

public class UnionFind.Record<E>
extends java.lang.Object


Field Summary
private  E name
           
private  UnionFind.Record<E> parent
           
private  int size
           
private  double weight
           
 
Constructor Summary
UnionFind.Record(E name)
           
 
Method Summary
private  void absorb(UnionFind.Record<E> sub)
           
 boolean equals(java.lang.Object obj)
           
 E getName()
           
 UnionFind.Record<E> getParent()
           
private  int getSize()
           
private  double getWeight()
           
 boolean isRoot()
           
 void setParent(UnionFind.Record<E> parent)
           
 void setWeight(double wt)
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

size

private int size

weight

private double weight

name

private E name

parent

private UnionFind.Record<E> parent
Constructor Detail

UnionFind.Record

public UnionFind.Record(E name)
Method Detail

setWeight

public void setWeight(double wt)

setParent

public void setParent(UnionFind.Record<E> parent)

isRoot

public boolean isRoot()

getName

public E getName()

getSize

private int getSize()

getWeight

private double getWeight()

absorb

private void absorb(UnionFind.Record<E> sub)

getParent

public UnionFind.Record<E> getParent()

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object