Package com.helger.phase4.model.mpc
Class MPCManagerInMemory
java.lang.Object
com.helger.phase4.model.mpc.MPCManagerInMemory
- All Implemented Interfaces:
IMPCManager
Manager for
MPC objects.- Author:
- Philip Helger
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleancontainsWithID(String sID) Check if an MPC with the specified ID is contained.final voidCreate a new MPC.com.helger.commons.state.EChangeDelete the MPC with the provided ID.getMPCOfID(String sID) Get the MPC with the specified ID.com.helger.commons.state.EChangemarkMPCDeleted(String sMPCID) Mark the MPC with the provided ID as deleted.com.helger.commons.state.EChangeUpdate an existing MPCMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface com.helger.phase4.model.mpc.IMPCManager
getMPCOrDefaultOfID
-
Constructor Details
-
MPCManagerInMemory
public MPCManagerInMemory()
-
-
Method Details
-
createMPC
Description copied from interface:IMPCManagerCreate a new MPC.- Specified by:
createMPCin interfaceIMPCManager- Parameters:
aMPC- The MPC to be added. May not benull.
-
updateMPC
Description copied from interface:IMPCManagerUpdate an existing MPC- Specified by:
updateMPCin interfaceIMPCManager- Parameters:
aMPC- The MPC to be updated. May not benull.- Returns:
EChange.CHANGEDif something changed,EChange.UNCHANGEDotherwise.
-
markMPCDeleted
Description copied from interface:IMPCManagerMark the MPC with the provided ID as deleted.- Specified by:
markMPCDeletedin interfaceIMPCManager- Parameters:
sMPCID- The ID of the MPC to be marked as deleted. May benull.- Returns:
EChange.CHANGEDif marking as deleted succeeded,EChange.UNCHANGEDotherwise.
-
deleteMPC
Description copied from interface:IMPCManagerDelete the MPC with the provided ID.- Specified by:
deleteMPCin interfaceIMPCManager- Parameters:
sMPCID- The ID of the MPC to be deleted. May benull.- Returns:
EChange.CHANGEDif deleting succeeded,EChange.UNCHANGEDotherwise.
-
getMPCOfID
Description copied from interface:IMPCManagerGet the MPC with the specified ID.- Specified by:
getMPCOfIDin interfaceIMPCManager- Parameters:
sID- The ID to search. May benull.- Returns:
nullif no such MPC exists, the MPC otherwise.
-
containsWithID
Description copied from interface:IMPCManagerCheck if an MPC with the specified ID is contained.- Specified by:
containsWithIDin interfaceIMPCManager- Parameters:
sID- The ID to search. May benull.- Returns:
trueif such an MPC is contained,falseotherwise.
-