Class RemoveModelMap
- java.lang.Object
-
public class RemoveModelMap extends java.util.HashMap<PK,ItemModel>
HashMap which holds models to be deleted.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description RemoveModelMap()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidaddModelToBeDeleted(PK pk, ItemModel model)Add a model with primary key (pk) to the HashMap.voiddeleteModel(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
-
-
-
-
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 setmodel- 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
-
-