Interface MetisDataItem.MetisDataMap<K,V>

Type Parameters:
K - the map key type
V - the map value type
All Superinterfaces:
MetisDataItem.MetisDataObjectFormat
All Known Implementing Classes:
MoneyWiseUKTaxYearCache, PrometheusDataTouch
Enclosing class:
MetisDataItem
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public static interface MetisDataItem.MetisDataMap<K,V> extends MetisDataItem.MetisDataObjectFormat
Map interface.
  • Method Summary

    Modifier and Type
    Method
    Description
    default V
    get(K pKey)
    Obtain the value for the key.
    Obtain underlying map.
    default boolean
    Is the map empty?.
    default V
    put(K pKey, V pValue)
    Put the value into the map.
    default int
    Obtain the size of the map.

    Methods inherited from interface io.github.tonywasher.joceanus.metis.data.MetisDataItem.MetisDataObjectFormat

    formatObject
  • Method Details

    • getUnderlyingMap

      Map<K,V> getUnderlyingMap()
      Obtain underlying map.
      Returns:
      the map
    • isEmpty

      default boolean isEmpty()
      Is the map empty?.
      Returns:
      true/false
    • size

      default int size()
      Obtain the size of the map.
      Returns:
      the size
    • put

      default V put(K pKey, V pValue)
      Put the value into the map.
      Parameters:
      pKey - the key
      pValue - the value
      Returns:
      the original value
    • get

      default V get(K pKey)
      Obtain the value for the key.
      Parameters:
      pKey - the key
      Returns:
      the associated value