| Modifier and Type | Field and Description |
|---|---|
| private int | |
| private static final int | |
| private final int | |
| private Object[] | |
| private final float | |
| private static final int | |
| private int |
| Access | Constructor and Description |
|---|---|
| public | IdentityIntSet(int
the initial capacity initialCapacity, final float the load factor loadFactor)Construct a new instance with the given initial capacity and load factor. |
| public | IdentityIntSet(final float
the load factor loadFactor)Construct a new instance with the given load factor and an initial capacity of 64. |
| public | IdentityIntSet(final int
the initial capacity initialCapacity)Construct a new instance with the given initial capacity and a load factor of |
| public |
| Modifier and Type | Method and Description |
|---|---|
| public boolean | Returns: true if the object was added, or false if it was already in the setthe key key)Add a value into the set, if it's not already in there. |
| public void | |
| public IdentityIntSet | |
| public boolean | Returns: true if the object is present in the setthe key key)Check to see if this set contains a value. |
| private void | |
| private void | |
| public String | Returns: a string representationOverrides java. |
| count | back to summary |
|---|---|
| private int count | |
| DEFAULT_REINITIALIZE_CAPACITY_THRESHOLD | back to summary |
|---|---|
| private static final int DEFAULT_REINITIALIZE_CAPACITY_THRESHOLD | |
| initialCapacity | back to summary |
|---|---|
| private final int initialCapacity | |
| keys | back to summary |
|---|---|
| private Object[] keys | |
| loadFactor | back to summary |
|---|---|
| private final float loadFactor | |
| REINITIALIZE_CAPACITY_THRESHOLD | back to summary |
|---|---|
| private static final int REINITIALIZE_CAPACITY_THRESHOLD | |
| resizeCount | back to summary |
|---|---|
| private int resizeCount | |
| IdentityIntSet | back to summary |
|---|---|
| public IdentityIntSet(int initialCapacity, final float loadFactor) Construct a new instance with the given initial capacity and load factor.
| |
| IdentityIntSet | back to summary |
|---|---|
| public IdentityIntSet(final float loadFactor) Construct a new instance with the given load factor and an initial capacity of 64.
| |
| IdentityIntSet | back to summary |
|---|---|
| public IdentityIntSet(final int initialCapacity) Construct a new instance with the given initial capacity and a load factor of
| |
| IdentityIntSet | back to summary |
|---|---|
| public IdentityIntSet() Construct a new instance with an initial capacity of 64 and a load factor of | |
| add | back to summary |
|---|---|
| public boolean add(T key) Add a value into the set, if it's not already in there.
| |
| clear | back to summary |
|---|---|
| public void clear() | |
| clone | back to summary |
|---|---|
| public IdentityIntSet Overrides java. Clone this set.
| |
| contains | back to summary |
|---|---|
| public boolean contains(T key) Check to see if this set contains a value.
| |
| init | back to summary |
|---|---|
| private void init() | |
| resize | back to summary |
|---|---|
| private void resize() | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Get a string summary representation of this map.
| |