Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.objectstyle.ashwood.util
Class IntPartition  view IntPartition download IntPartition.java

java.lang.Object
  extended byorg.objectstyle.ashwood.util.IntPartition

public final class IntPartition
extends java.lang.Object


Field Summary
private  int[] partition
           
private  int setCount
           
 
Constructor Summary
IntPartition(int elementCount)
           
 
Method Summary
 int findSetId(int element)
           
 int getSetCount()
           
 boolean isSetId(int element)
           
 int joinSets(int setId1, int setId2)
           
 void reset()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

partition

private int[] partition

setCount

private int setCount
Constructor Detail

IntPartition

public IntPartition(int elementCount)
Method Detail

joinSets

public final int joinSets(int setId1,
                          int setId2)

findSetId

public final int findSetId(int element)

size

public final int size()

getSetCount

public final int getSetCount()

reset

public final void reset()

isSetId

public final boolean isSetId(int element)