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