public class KeyedItemFactoryMap<K,I,P> extends Object implements Map<K,ComputableFactory<I,P>>
| Modifier and Type | Field and Description |
|---|---|
protected HashMap<K,ComputableFactory<I,P>> |
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,ComputableFactory<I,P>>> |
entrySet() |
ComputableFactory<I,P> |
get(Object o) |
I |
getItem(K key) |
boolean |
isEmpty() |
Set<K> |
keySet() |
ComputableFactory<I,P> |
put(K k,
ComputableFactory<I,P> factory) |
void |
putAll(Map<? extends K,? extends ComputableFactory<I,P>> map) |
ComputableFactory<I,P> |
remove(Object o) |
int |
size() |
Collection<ComputableFactory<I,P>> |
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 HashMap<K,ComputableFactory<I,P>> factoryMap
protected final P param
public KeyedItemFactoryMap(P param)
public KeyedItemFactoryMap(P param, int capacity)
public ComputableFactory<I,P> get(Object o)
public boolean containsKey(Object o)
containsKey in interface Map<K,ComputableFactory<I,P>>public ComputableFactory<I,P> put(K k, ComputableFactory<I,P> factory)
public void putAll(Map<? extends K,? extends ComputableFactory<I,P>> map)
public ComputableFactory<I,P> remove(Object o)
public boolean containsValue(Object o)
containsValue in interface Map<K,ComputableFactory<I,P>>public Collection<ComputableFactory<I,P>> values()
Copyright © 2018. All rights reserved.