public class ConcurrentIntTreeMap<T> extends IntTreeMap<T> implements ConcurrentCollection
IntTreeMap.SortedKeys
Modifier and Type | Field and Description |
---|---|
protected ReadWriteLock |
lock |
Constructor and Description |
---|
ConcurrentIntTreeMap() |
ConcurrentIntTreeMap(int initialCapacity) |
ConcurrentIntTreeMap(int initialCapacity,
float loadFactor) |
ConcurrentIntTreeMap(org.mini2Dx.gdx.utils.IntMap<? extends T> map)
NOTE: read access to the other map is not thread-safe
|
Modifier and Type | Method and Description |
---|---|
org.mini2Dx.gdx.utils.IntMap.Keys |
ascendingKeys() |
void |
clear() |
void |
clear(int maximumCapacity) |
boolean |
containsKey(int key) |
boolean |
containsValue(java.lang.Object value,
boolean identity) |
org.mini2Dx.gdx.utils.IntMap.Keys |
descendingKeys() |
void |
ensureCapacity(int additionalCapacity) |
org.mini2Dx.gdx.utils.IntMap.Entries<T> |
entries() |
boolean |
equals(java.lang.Object object) |
boolean |
equalsIdentity(java.lang.Object obj) |
int |
findKey(java.lang.Object value,
boolean identity,
int notFound) |
T |
get(int key,
T defaultValue) |
ReadWriteLock |
getLock()
Returns the collection's
ReadWriteLock |
int |
hashCode() |
boolean |
isEmpty() |
org.mini2Dx.gdx.utils.IntMap.Keys |
keys() |
boolean |
notEmpty() |
T |
put(int key,
T value) |
void |
putAll(org.mini2Dx.gdx.utils.IntMap<? extends T> map) |
T |
remove(int key) |
void |
shrink(int maximumCapacity) |
java.lang.String |
toString() |
org.mini2Dx.gdx.utils.IntMap.Values<T> |
values() |
protected ReadWriteLock lock
public ConcurrentIntTreeMap()
public ConcurrentIntTreeMap(int initialCapacity)
public ConcurrentIntTreeMap(int initialCapacity, float loadFactor)
public ConcurrentIntTreeMap(org.mini2Dx.gdx.utils.IntMap<? extends T> map)
map
- public T put(int key, T value)
put
in class IntTreeMap<T>
public void putAll(org.mini2Dx.gdx.utils.IntMap<? extends T> map)
putAll
in class IntTreeMap<T>
public T remove(int key)
remove
in class IntTreeMap<T>
public void shrink(int maximumCapacity)
shrink
in class org.mini2Dx.gdx.utils.IntMap<T>
public void clear(int maximumCapacity)
clear
in class IntTreeMap<T>
public void clear()
clear
in class IntTreeMap<T>
public boolean containsValue(java.lang.Object value, boolean identity)
containsValue
in class org.mini2Dx.gdx.utils.IntMap<T>
public boolean containsKey(int key)
containsKey
in class org.mini2Dx.gdx.utils.IntMap<T>
public int findKey(java.lang.Object value, boolean identity, int notFound)
findKey
in class org.mini2Dx.gdx.utils.IntMap<T>
public void ensureCapacity(int additionalCapacity)
ensureCapacity
in class org.mini2Dx.gdx.utils.IntMap<T>
public int hashCode()
hashCode
in class org.mini2Dx.gdx.utils.IntMap<T>
public boolean equals(java.lang.Object object)
equals
in class org.mini2Dx.gdx.utils.IntMap<T>
public boolean notEmpty()
notEmpty
in class org.mini2Dx.gdx.utils.IntMap<T>
public boolean isEmpty()
isEmpty
in class org.mini2Dx.gdx.utils.IntMap<T>
public boolean equalsIdentity(java.lang.Object obj)
equalsIdentity
in class org.mini2Dx.gdx.utils.IntMap<T>
public java.lang.String toString()
toString
in class org.mini2Dx.gdx.utils.IntMap<T>
public org.mini2Dx.gdx.utils.IntMap.Entries<T> entries()
entries
in class org.mini2Dx.gdx.utils.IntMap<T>
public org.mini2Dx.gdx.utils.IntMap.Values<T> values()
values
in class org.mini2Dx.gdx.utils.IntMap<T>
public org.mini2Dx.gdx.utils.IntMap.Keys keys()
keys
in class org.mini2Dx.gdx.utils.IntMap<T>
public org.mini2Dx.gdx.utils.IntMap.Keys ascendingKeys()
ascendingKeys
in class IntTreeMap<T>
public org.mini2Dx.gdx.utils.IntMap.Keys descendingKeys()
descendingKeys
in class IntTreeMap<T>
public ReadWriteLock getLock()
ConcurrentCollection
ReadWriteLock
getLock
in interface ConcurrentCollection
ReadWriteLock