Package net.sf.colossus.util
Class InstanceGroup
- java.lang.Object
-
- net.sf.colossus.util.InstanceGroup
-
public class InstanceGroup extends java.lang.ObjectStorage object for all objects of one class type registered in InstanceTracker.- Author:
- Clemens Katzer
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description classInstanceGroup.TypeInstance
-
Field Summary
Fields Modifier and Type Field Description private java.util.WeakHashMap<java.lang.Object,InstanceGroup.TypeInstance>instancesprivate static java.util.logging.LoggerLOGGERprivate java.lang.StringshortType
-
Constructor Summary
Constructors Constructor Description InstanceGroup(java.lang.String type)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddInstance(java.lang.Object o, java.lang.String id)intamountLeft()InstanceGroup.TypeInstancegetInstance(java.lang.Object o)java.lang.StringgetPrintStatistics()static java.lang.StringshortType(java.lang.String type)
-
-
-
Field Detail
-
LOGGER
private static final java.util.logging.Logger LOGGER
-
instances
private final java.util.WeakHashMap<java.lang.Object,InstanceGroup.TypeInstance> instances
-
shortType
private final java.lang.String shortType
-
-
Method Detail
-
shortType
public static java.lang.String shortType(java.lang.String type)
-
addInstance
public void addInstance(java.lang.Object o, java.lang.String id)
-
getPrintStatistics
public java.lang.String getPrintStatistics()
-
amountLeft
public int amountLeft()
-
getInstance
public InstanceGroup.TypeInstance getInstance(java.lang.Object o)
-
-