Class RemoveModelMap

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Cloneable, java.util.Map<PK,​ItemModel>

    public class RemoveModelMap
    extends java.util.HashMap<PK,​ItemModel>
    HashMap which holds models to be deleted.
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class java.util.AbstractMap

        java.util.AbstractMap.SimpleEntry<K extends java.lang.Object,​V extends java.lang.Object>, java.util.AbstractMap.SimpleImmutableEntry<K extends java.lang.Object,​V extends java.lang.Object>
      • Nested classes/interfaces inherited from interface java.util.Map

        java.util.Map.Entry<K extends java.lang.Object,​V extends java.lang.Object>
    • Constructor Summary

      Constructors 
      Constructor Description
      RemoveModelMap()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void addModelToBeDeleted​(PK pk, ItemModel model)
      Add a model with primary key (pk) to the HashMap.
      void deleteModel​(PK pk)
      Delete a model in the HashMap.
      java.util.Map<PK,​ItemModel> getModelsToBeDeleted()
      get alls models which has to be deleted.
      • Methods inherited from class java.util.HashMap

        clear, clone, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, forEach, get, getOrDefault, isEmpty, keySet, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
      • Methods inherited from class java.util.AbstractMap

        equals, hashCode, toString
      • Methods inherited from class java.lang.Object

        finalize, getClass, notify, notifyAll, wait, wait, wait
      • Methods inherited from interface java.util.Map

        equals, hashCode
    • Constructor Detail

      • RemoveModelMap

        public RemoveModelMap()
    • Method Detail

      • addModelToBeDeleted

        public void addModelToBeDeleted​(PK pk,
                                        ItemModel model)
        Add a model with primary key (pk) to the HashMap.
        Parameters:
        pk - primary key to be set
        model - itemModel to be set
      • getModelsToBeDeleted

        public java.util.Map<PK,​ItemModel> getModelsToBeDeleted()
        get alls models which has to be deleted.
        Returns:
        Map of models which will be deleted
      • deleteModel

        public void deleteModel​(PK pk)
        Delete a model in the HashMap.
        Parameters:
        pk - primary key to be set