java.lang.Object
io.github.tonywasher.joceanus.prometheus.data.PrometheusDataInstanceMap<T,K>
Type Parameters:
T - the data type
K - 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
  • Field Details

    • ONE

      public static final Integer ONE
      Standard integer ONE.
  • Constructor Details

    • PrometheusDataInstanceMap

      protected PrometheusDataInstanceMap()
      Constructor.
  • Method Details

    • getDataFieldSet

      public MetisFieldSet<? extends PrometheusDataInstanceMap> getDataFieldSet()
      Description copied from interface: MetisFieldItem
      Obtain the fieldSet.
      Specified by:
      getDataFieldSet in interface MetisFieldItem
      Returns:
      the fieldSet
    • formatObject

      public String formatObject(OceanusDataFormatter pFormatter)
      Description copied from interface: MetisDataItem.MetisDataObjectFormat
      Obtain Object summary.
      Specified by:
      formatObject in interface MetisDataItem.MetisDataObjectFormat
      Parameters:
      pFormatter - the data formatter
      Returns:
      the display summary of the object
    • resetMap

      public void resetMap()
      Description copied from interface: PrometheusDataMapItem
      Reset the map.
      Specified by:
      resetMap in interface PrometheusDataMapItem
    • adjustForItem

      protected void adjustForItem(T pItem, K pKey)
      adjust maps for item.
      Parameters:
      pItem - the item to map
      pKey - the key
    • findItemByKey

      public T findItemByKey(K pKey)
      find item by key.
      Parameters:
      pKey - the key to look up
      Returns:
      the matching item
    • validKeyCount

      public boolean validKeyCount(K pKey)
      Check validity of key.
      Parameters:
      pKey - the key to look up
      Returns:
      true/false
    • availableKey

      public boolean availableKey(K pKey)
      Check availability of key.
      Parameters:
      pKey - the key to look up
      Returns:
      true/false