Interface LabeledIntMap.LabeledIntMapView

All Superinterfaces:
LabeledIntMap, Serializable
All Known Implementing Classes:
LabeledIntHierarchyMap.LabeledIntHierarchyMapView, LabeledIntSimpleMap.LabeledIntNotMinMapView, LabeledIntTreeMap.LabeledIntTreeMapView
Enclosing interface:
LabeledIntMap

public static interface LabeledIntMap.LabeledIntMapView extends LabeledIntMap
A read-only view of an object
Author:
posenato
  • Method Details

    • clear

      default void clear()
      Description copied from interface: LabeledIntMap
      Remove all entries of the map.
      Specified by:
      clear in interface LabeledIntMap
      See Also:
    • put

      default boolean put(Label l, int i)
      Object Read-only. It does nothing.
      Specified by:
      put in interface LabeledIntMap
      Parameters:
      l - a not null label.
      i - a not Constants.INT_NULL value.
      Returns:
      true if (l,i) has been inserted. Since an insertion can remove more than one redundant labeled values, it is nonsensical to return "the old value" as expected from a classical put method.
    • putAll

      default void putAll(LabeledIntMap inputMap)
      Description copied from interface: LabeledIntMap
      Put all elements of inputMap into the current one without making a defensive copy.
      Specified by:
      putAll in interface LabeledIntMap
      Parameters:
      inputMap - an object.
      See Also:
    • remove

      default int remove(Label l)
      Description copied from interface: LabeledIntMap
      Remove the label l from the map. If the l is not present, it does nothing.
      Specified by:
      remove in interface LabeledIntMap
      Parameters:
      l - a not null label.
      Returns:
      the previous value associated with l, or Constants.INT_NULL if there was no mapping for l.
      See Also: