public final class IntMap extends IntSet
IntSet
class. All values except for Integer.MIN_VALUE
can be stored as values.Constructor and Description |
---|
IntMap()
Default constructor.
|
IntMap(int capacity)
Default constructor.
|
public IntMap()
public IntMap(int capacity)
capacity
- initial array capacitypublic int put(int key, int value)
Integer.MIN_VALUE
cannot be stored.key
- keyvalue
- valuepublic int get(int key)
key
- key to be looked upInteger.MIN_VALUE
if the key was not foundprotected void rehash(int sz)
ASet
Copyright © 2005–2015 BaseX Team. All rights reserved.