EVolve.util.Equators
Class SpecialUnorderedSet

java.lang.Object
  |
  +--EVolve.util.Equators.Set
        |
        +--EVolve.util.Equators.SpecialUnorderedSet

public class SpecialUnorderedSet
extends Set


Field Summary
 
Fields inherited from class EVolve.util.Equators.Set
data, emptySlot, entityNumber, size
 
Constructor Summary
SpecialUnorderedSet(int interval, int entityNumber)
           
 
Method Summary
 void addElement(int element)
           
 boolean equals(Set set, float percent)
           
 boolean exist(int element)
           
 int getEntityId(int i)
           
 int getHashValue()
           
 int getValidSize()
           
 Set intersection(Set set)
           
 Set newSet()
           
 Set union(Set set)
           
 
Methods inherited from class EVolve.util.Equators.Set
getElement, setFull, size
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SpecialUnorderedSet

public SpecialUnorderedSet(int interval,
                           int entityNumber)
Method Detail

exist

public boolean exist(int element)
Specified by:
exist in class Set

newSet

public Set newSet()
Specified by:
newSet in class Set

addElement

public void addElement(int element)
Specified by:
addElement in class Set

union

public Set union(Set set)
Specified by:
union in class Set

intersection

public Set intersection(Set set)
Specified by:
intersection in class Set

equals

public boolean equals(Set set,
                      float percent)
Specified by:
equals in class Set

getHashValue

public int getHashValue()
Specified by:
getHashValue in class Set

getValidSize

public int getValidSize()
Overrides:
getValidSize in class Set

getEntityId

public int getEntityId(int i)
Overrides:
getEntityId in class Set