| Modifier and Type | Field and Description |
|---|---|
protected HashMap<K,Function<P,I>> |
factoryMap |
protected HashMap<K,I> |
itemMap |
protected P |
param |
| Constructor and Description |
|---|
KeyedItemFactoryMap(P param) |
KeyedItemFactoryMap(P param,
int capacity) |
| Modifier and Type | Method and Description |
|---|---|
void |
clear() |
boolean |
containsKey(Object o) |
boolean |
containsValue(Object o) |
Set<Map.Entry<K,Function<P,I>>> |
entrySet() |
Function<P,I> |
get(Object o) |
I |
getItem(K key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
Function<P,I> |
put(K k,
Function<P,I> factory) |
void |
putAll(Map<? extends K,? extends Function<P,I>> map) |
Function<P,I> |
remove(Object o) |
int |
size() |
Collection<Function<P,I>> |
values() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, equals, forEach, getOrDefault, hashCode, merge, putIfAbsent, remove, replace, replace, replaceAllprotected final P param
public KeyedItemFactoryMap(P param)
public KeyedItemFactoryMap(P param, int capacity)
Copyright © 2019. All rights reserved.