T
- The value class to store.public class LongHashMap<T>
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
LongHashMap.Entry<T> |
protected static class |
LongHashMap.Synchronized<T> |
Modifier and Type | Field and Description |
---|---|
protected static int |
DEFAULT_CAPACITY |
Constructor and Description |
---|
LongHashMap() |
LongHashMap(int capacity) |
Modifier and Type | Method and Description |
---|---|
void |
clear() |
boolean |
containsKey(long key) |
static <T> LongHashMap<T> |
createSynchronized()
Creates a synchronized (thread-safe) LongHashSet.
|
static <T> LongHashMap<T> |
createSynchronized(int capacity)
Creates a synchronized (thread-safe) LongHashSet using the given initial capacity.
|
LongHashMap.Entry<T>[] |
entries()
Returns all entries in no particular order.
|
T |
get(long key) |
long[] |
keys()
Returns all keys in no particular order.
|
T |
put(long key,
T value) |
T |
remove(long key) |
void |
reserveRoom(int entryCount)
Target load: 0,6
|
void |
setCapacity(int newCapacity) |
int |
size() |
protected static final int DEFAULT_CAPACITY
public static <T> LongHashMap<T> createSynchronized()
public static <T> LongHashMap<T> createSynchronized(int capacity)
public boolean containsKey(long key)
public T get(long key)
public T remove(long key)
public long[] keys()
public LongHashMap.Entry<T>[] entries()
public void clear()
public int size()
public void setCapacity(int newCapacity)
public void reserveRoom(int entryCount)
Available under the Apache License, Version 2.0 - Copyright © 2012-2016 greenrobot.org. All Rights Reserved.