EVolve.util.equators
Class Set

java.lang.Object
  |
  +--EVolve.util.equators.Set
All Implemented Interfaces:
java.lang.Cloneable
Direct Known Subclasses:
OrderedSet, UnorderedSet, UnorderedUnlimitedSet

public abstract class Set
extends java.lang.Object
implements java.lang.Cloneable


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

Field Detail

data

protected long[] data

size

protected int size

emptySlot

protected int emptySlot

entityNumber

protected int entityNumber
Constructor Detail

Set

public Set()
Method Detail

size

public int size()

getElement

public long getElement(int i)

setFull

public boolean setFull()

getEntityId

public long getEntityId(int i)

addElement

public abstract void addElement(long element)

intersection

public abstract Set intersection(Set set)

union

public abstract Set union(Set set)

exist

public abstract boolean exist(long element)

getHashValue

public abstract long getHashValue()

newSet

public abstract Set newSet()

equals

public abstract boolean equals(Set set,
                               float percent)

clone

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