Class PrometheusDataTouch
java.lang.Object
io.github.tonywasher.joceanus.prometheus.data.PrometheusDataTouch
- All Implemented Interfaces:
MetisDataItem.MetisDataMap<MetisListKey,,PrometheusDataTouch.PrometheusTouchCounter> MetisDataItem.MetisDataObjectFormat
public class PrometheusDataTouch
extends Object
implements MetisDataItem.MetisDataObjectFormat, MetisDataItem.MetisDataMap<MetisListKey,PrometheusDataTouch.PrometheusTouchCounter>
Class to record reference to a DataItem via another data item.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final classSimple counter. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcopyMap(PrometheusDataTouch pSource) Constructor.formatObject(OceanusDataFormatter pFormatter) Obtain Object summary.getCounter(MetisListKey pItemType) Obtain item count.Obtain underlying map.booleanisActive()Is the item active.iterator()Obtain iterator.voidReset all touches.voidresetTouches(MetisListKey pItemType) Reset touches for a dataType.booleantouchedBy(MetisListKey pItemType) Is the item touched by the ItemType?voidtouchItem(MetisListKey pItemType) Touch an item.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.metis.data.MetisDataItem.MetisDataMap
get, isEmpty, put, size
-
Constructor Details
-
PrometheusDataTouch
public PrometheusDataTouch()Constructor.
-
-
Method Details
-
getUnderlyingMap
Description copied from interface:MetisDataItem.MetisDataMapObtain underlying map.- Specified by:
getUnderlyingMapin interfaceMetisDataItem.MetisDataMap<MetisListKey,PrometheusDataTouch.PrometheusTouchCounter> - Returns:
- the map
-
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
-
copyMap
Constructor.- Parameters:
pSource- the source map
-
resetTouches
public void resetTouches()Reset all touches. -
resetTouches
Reset touches for a dataType.- Parameters:
pItemType- the ItemType
-
touchItem
Touch an item.- Parameters:
pItemType- the item type
-
touchedBy
Is the item touched by the ItemType?- Parameters:
pItemType- the item type- Returns:
- true/false
-
isActive
public boolean isActive()Is the item active.- Returns:
- true/false
-
getCounter
Obtain item count.- Parameters:
pItemType- the item type- Returns:
- the counter (or null)
-
iterator
Obtain iterator.- Returns:
- the iterator
-