public class ConcurrentIntToObjectArrayMap<T> extends Object
| Constructor and Description |
|---|
ConcurrentIntToObjectArrayMap() |
ConcurrentIntToObjectArrayMap(int initialCapacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
contains(int key) |
T |
get(int key) |
T |
getOrUpdate(int key,
Supplier<T> producer) |
static void |
main(String[] args) |
void |
put(int key,
T value) |
boolean |
remove(int key)
重置为未赋值
|
public ConcurrentIntToObjectArrayMap()
public ConcurrentIntToObjectArrayMap(int initialCapacity)
public boolean contains(int key)
key - public T get(int key)
key - public void put(int key,
T value)
key - 大于零,小于512kvalue - public boolean remove(int key)
key - 大于零,小于512kpublic void clear()
public static void main(String[] args)
Copyright © 2019. All rights reserved.