ApiProviderHashMap

public final class ApiProviderHashMap<K, V> implements ApiProviderMap<K, V>

Functions

create
Link copied to clipboard
static ApiProviderMap<K, Vcreate<K, V>()
Create a new instance.
get
Link copied to clipboard
@Nullable()
V get(K key)
Return the provider to which the specified key is mapped,or {@code null} if this map contains no mapping for the key.
putIfAbsent
Link copied to clipboard
synchronized V putIfAbsent(K key, V provider)
If the specified key is not already associated with a provider,associate it with the given value and return {@code null}, else return the current value.

Sources

jvm source
Link copied to clipboard