EVolve.util.equators
Class UnorderedSet

java.lang.Object
  |
  +--EVolve.util.equators.Set
        |
        +--EVolve.util.equators.UnorderedSet
All Implemented Interfaces:
java.lang.Cloneable

public class UnorderedSet
extends Set


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

Constructor Detail

UnorderedSet

public UnorderedSet(int interval)
Method Detail

exist

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

newSet

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

getElement

public long getElement(int index)
Overrides:
getElement in class Set

addElement

public void addElement(long 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 long getHashValue()
Specified by:
getHashValue in class Set

getEntityId

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

clone

public java.lang.Object clone()
Overrides:
clone in class Set