public abstract class ArrayIntSet extends java.lang.Object implements IntSet, java.lang.Cloneable
Modifier and Type | Field and Description |
---|---|
protected int[] |
elements |
protected int |
size |
Modifier | Constructor and Description |
---|---|
protected |
ArrayIntSet() |
protected |
ArrayIntSet(int initialCapacity) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
ArrayIntSet |
clone() |
boolean |
equals(java.lang.Object o) |
int |
hashCode()
this is probably a bad hash function, but we just need something that
is order independent
|
IntIterator |
intIterator() |
boolean |
isEmpty() |
int |
size() |
java.lang.String |
toString() |
protected ArrayIntSet()
protected ArrayIntSet(int initialCapacity)
public java.lang.String toString()
toString
in class java.lang.Object
public ArrayIntSet clone()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public IntIterator intIterator()
intIterator
in interface IntSet