public abstract class ArrayIntSet extends Object implements IntSet, 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(Object o)
default implementation is just an identity check
|
int |
hashCode()
this is probably a bad hash function, but we just need something that
is order independent
|
IntIterator |
intIterator() |
boolean |
isEmpty() |
int |
size() |
String |
toString() |
protected ArrayIntSet()
protected ArrayIntSet(int initialCapacity)
public ArrayIntSet clone()
public int hashCode()
public boolean equals(Object o)
Object
public IntIterator intIterator()
intIterator
in interface IntSet