Package zombie.util.set
Class IntOpenHashSet
java.lang.Object
zombie.util.AbstractIntCollection
zombie.util.set.AbstractIntSet
zombie.util.set.IntOpenHashSet
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Cloneable
,IntCollection
,IntSet
public class IntOpenHashSet extends AbstractIntSet implements IntSet, java.lang.Cloneable, java.io.Serializable
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_CAPACITY
static int
DEFAULT_GROWTH_CHUNK
static double
DEFAULT_GROWTH_FACTOR
static double
DEFAULT_LOAD_FACTOR
-
Constructor Summary
Constructors Constructor Description IntOpenHashSet()
IntOpenHashSet(double loadFactor)
IntOpenHashSet(int capacity)
IntOpenHashSet(int[] a)
IntOpenHashSet(int capacity, double loadFactor)
IntOpenHashSet(int capacity, double loadFactor, double growthFactor)
IntOpenHashSet(int capacity, double loadFactor, int growthChunk)
IntOpenHashSet(IntHashFunction keyhash)
IntOpenHashSet(IntHashFunction keyhash, double loadFactor)
IntOpenHashSet(IntHashFunction keyhash, int capacity)
IntOpenHashSet(IntHashFunction keyhash, int capacity, double loadFactor)
IntOpenHashSet(IntHashFunction keyhash, int capacity, double loadFactor, double growthFactor)
IntOpenHashSet(IntHashFunction keyhash, int capacity, double loadFactor, int growthChunk)
IntOpenHashSet(IntCollection c)
-
Method Summary
Methods inherited from class zombie.util.set.AbstractIntSet
equals
Methods inherited from class zombie.util.AbstractIntCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toString
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface zombie.util.IntCollection
addAll, containsAll, equals, isEmpty, removeAll, retainAll, toArray
-
Field Details
-
DEFAULT_GROWTH_FACTOR
public static final double DEFAULT_GROWTH_FACTOR- See Also:
- Constant Field Values
-
DEFAULT_GROWTH_CHUNK
public static final int DEFAULT_GROWTH_CHUNK- See Also:
- Constant Field Values
-
DEFAULT_CAPACITY
public static final int DEFAULT_CAPACITY- See Also:
- Constant Field Values
-
DEFAULT_LOAD_FACTOR
public static final double DEFAULT_LOAD_FACTOR- See Also:
- Constant Field Values
-
-
Constructor Details
-
IntOpenHashSet
public IntOpenHashSet() -
IntOpenHashSet
-
IntOpenHashSet
public IntOpenHashSet(int[] a) -
IntOpenHashSet
public IntOpenHashSet(int capacity) -
IntOpenHashSet
public IntOpenHashSet(double loadFactor) -
IntOpenHashSet
public IntOpenHashSet(int capacity, double loadFactor) -
IntOpenHashSet
public IntOpenHashSet(int capacity, double loadFactor, double growthFactor) -
IntOpenHashSet
public IntOpenHashSet(int capacity, double loadFactor, int growthChunk) -
IntOpenHashSet
-
IntOpenHashSet
-
IntOpenHashSet
-
IntOpenHashSet
-
IntOpenHashSet
public IntOpenHashSet(IntHashFunction keyhash, int capacity, double loadFactor, double growthFactor) -
IntOpenHashSet
-
-
Method Details
-
add
public boolean add(int v)- Specified by:
add
in interfaceIntCollection
- Overrides:
add
in classAbstractIntCollection
-
iterator
- Specified by:
iterator
in interfaceIntCollection
-
trimToSize
public void trimToSize()- Specified by:
trimToSize
in interfaceIntCollection
- Overrides:
trimToSize
in classAbstractIntCollection
-
clone
public java.lang.Object clone()- Overrides:
clone
in classjava.lang.Object
-
size
public int size()- Specified by:
size
in interfaceIntCollection
- Overrides:
size
in classAbstractIntCollection
-
clear
public void clear()- Specified by:
clear
in interfaceIntCollection
- Overrides:
clear
in classAbstractIntCollection
-
contains
public boolean contains(int v)- Specified by:
contains
in interfaceIntCollection
- Overrides:
contains
in classAbstractIntCollection
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfaceIntCollection
- Overrides:
hashCode
in classAbstractIntSet
-
remove
public boolean remove(int v)- Specified by:
remove
in interfaceIntCollection
- Overrides:
remove
in classAbstractIntCollection
-
toArray
public int[] toArray(int[] a)- Specified by:
toArray
in interfaceIntCollection
- Overrides:
toArray
in classAbstractIntCollection
-