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 intDEFAULT_CAPACITYstatic intDEFAULT_GROWTH_CHUNKstatic doubleDEFAULT_GROWTH_FACTORstatic doubleDEFAULT_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
equalsMethods inherited from class zombie.util.AbstractIntCollection
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toStringMethods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, waitMethods 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:
addin interfaceIntCollection- Overrides:
addin classAbstractIntCollection
-
iterator
- Specified by:
iteratorin interfaceIntCollection
-
trimToSize
public void trimToSize()- Specified by:
trimToSizein interfaceIntCollection- Overrides:
trimToSizein classAbstractIntCollection
-
clone
public java.lang.Object clone()- Overrides:
clonein classjava.lang.Object
-
size
public int size()- Specified by:
sizein interfaceIntCollection- Overrides:
sizein classAbstractIntCollection
-
clear
public void clear()- Specified by:
clearin interfaceIntCollection- Overrides:
clearin classAbstractIntCollection
-
contains
public boolean contains(int v)- Specified by:
containsin interfaceIntCollection- Overrides:
containsin classAbstractIntCollection
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceIntCollection- Overrides:
hashCodein classAbstractIntSet
-
remove
public boolean remove(int v)- Specified by:
removein interfaceIntCollection- Overrides:
removein classAbstractIntCollection
-
toArray
public int[] toArray(int[] a)- Specified by:
toArrayin interfaceIntCollection- Overrides:
toArrayin classAbstractIntCollection
-