public class IntMap extends Object
The convenience of IntMap is avoiding all the silly wrapping of integers.
| 构造器和说明 |
|---|
IntMap()
Create a new IntMap.
|
| 限定符和类型 | 方法和说明 |
|---|---|
void |
clear()
Clear the hashmap.
|
int |
get(Object key)
Puts a new value in the property table with the appropriate flags
|
static int |
getBiggestPrime(int value) |
int |
put(Object key,
int value,
boolean isReplace)
Puts a new value in the property table with the appropriate flags
|
int |
size()
Returns the current number of entries in the map.
|
String |
toString() |
public static final int NULL
public static final int[] PRIMES
public static int getBiggestPrime(int value)
public void clear()
public final int size()
public final int get(Object key)
public final int put(Object key, int value, boolean isReplace)
Copyright © 2011–2024 The Apache Software Foundation. All rights reserved.