Package net.sf.freecol.common.model
Class ProductionMap
- java.lang.Object
-
- net.sf.freecol.common.model.ProductionMap
-
public class ProductionMap extends java.lang.Object
A map of goods types and their production.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
ProductionMap.ProductionTree
-
Constructor Summary
Constructors Constructor Description ProductionMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
add(java.util.List<AbstractGoods> goods)
void
add(AbstractGoods goods)
AbstractGoods
get(GoodsType type)
void
remove(java.util.List<AbstractGoods> goods)
void
remove(AbstractGoods goods)
java.lang.String
toString()
-
-
-
Field Detail
-
cache
private final java.util.Map<GoodsType,java.lang.Object> cache
-
-
Method Detail
-
get
public AbstractGoods get(GoodsType type)
-
add
public void add(AbstractGoods goods)
-
remove
public void remove(AbstractGoods goods)
-
add
public void add(java.util.List<AbstractGoods> goods)
-
remove
public void remove(java.util.List<AbstractGoods> goods)
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-