public static StoreContainerType valueOf(Class stoc_class, int stoc_type) {
StoreContainerType returnStocType=null;
- if (stoc_type>=0 && stoc_type < STOC_TYPE_MAX) {
+ if (stoc_type>=0 && stoc_type <= STOC_TYPE_MAX) {
HashMap current = uniqueTypes[stoc_type];
if ( current.containsKey(stoc_class) )
returnStocType=(StoreContainerType)current.get(stoc_class);
return returnStocType;
}
+ public int getStocType() { return stocType; }
+ public Class getStocClass() { return stocClass; }
+
public String toString() {
StringBuffer sb = new StringBuffer(this.stocClass.toString());
sb.append("@").append(stringForStoreType(stocType));