Class PrometheusDataInstanceMap<T extends PrometheusDataItem,K>
java.lang.Object
io.github.tonywasher.joceanus.prometheus.data.PrometheusDataInstanceMap<T,K>
- Type Parameters:
T- the data typeK- the instance key
- All Implemented Interfaces:
MetisDataItem.MetisDataObjectFormat,MetisFieldItem,PrometheusDataMapItem
- Direct Known Subclasses:
PrometheusStaticDataItem.PrometheusStaticDataMap
public abstract class PrometheusDataInstanceMap<T extends PrometheusDataItem,K>
extends Object
implements PrometheusDataMapItem, MetisFieldItem
Template for a Data Instance Map.
- Author:
- Tony Washer
-
Nested Class Summary
Nested classes/interfaces inherited from interface io.github.tonywasher.joceanus.metis.field.MetisFieldItem
MetisFieldItem.MetisFieldDef, MetisFieldItem.MetisFieldItemType, MetisFieldItem.MetisFieldSetDef, MetisFieldItem.MetisFieldTableItem, MetisFieldItem.MetisFieldUpdatableItem, MetisFieldItem.MetisFieldVersionedDef -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidadjustForItem(T pItem, K pKey) adjust maps for item.booleanavailableKey(K pKey) Check availability of key.findItemByKey(K pKey) find item by key.formatObject(OceanusDataFormatter pFormatter) Obtain Object summary.MetisFieldSet<? extends PrometheusDataInstanceMap> Obtain the fieldSet.voidresetMap()Reset the map.booleanvalidKeyCount(K pKey) Check validity of key.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface io.github.tonywasher.joceanus.prometheus.data.PrometheusDataMapItem
adjustForItem
-
Field Details
-
ONE
Standard integer ONE.
-
-
Constructor Details
-
PrometheusDataInstanceMap
protected PrometheusDataInstanceMap()Constructor.
-
-
Method Details
-
getDataFieldSet
Description copied from interface:MetisFieldItemObtain the fieldSet.- Specified by:
getDataFieldSetin interfaceMetisFieldItem- Returns:
- the fieldSet
-
formatObject
Description copied from interface:MetisDataItem.MetisDataObjectFormatObtain Object summary.- Specified by:
formatObjectin interfaceMetisDataItem.MetisDataObjectFormat- Parameters:
pFormatter- the data formatter- Returns:
- the display summary of the object
-
resetMap
public void resetMap()Description copied from interface:PrometheusDataMapItemReset the map.- Specified by:
resetMapin interfacePrometheusDataMapItem
-
adjustForItem
adjust maps for item.- Parameters:
pItem- the item to mappKey- the key
-
findItemByKey
find item by key.- Parameters:
pKey- the key to look up- Returns:
- the matching item
-
validKeyCount
Check validity of key.- Parameters:
pKey- the key to look up- Returns:
- true/false
-
availableKey
Check availability of key.- Parameters:
pKey- the key to look up- Returns:
- true/false
-