@ThreadSafe public class MPCManagerInMemory extends Object implements IMPCManager
MPC objects.| Constructor and Description |
|---|
MPCManagerInMemory() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsWithID(String sID)
Check if an MPC with the specified ID is contained.
|
void |
createMPC(MPC aMPC)
Create a new MPC.
|
com.helger.commons.state.EChange |
deleteMPC(String sMPCID)
Delete the MPC with the provided ID.
|
IMPC |
getMPCOfID(String sID)
Get the MPC with the specified ID.
|
com.helger.commons.state.EChange |
markMPCDeleted(String sMPCID)
Mark the MPC with the provided ID as deleted.
|
com.helger.commons.state.EChange |
updateMPC(IMPC aMPC)
Update an existing MPC
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetMPCOrDefaultOfIDpublic final void createMPC(@Nonnull MPC aMPC)
IMPCManagercreateMPC in interface IMPCManageraMPC - The MPC to be added. May not be null.@Nonnull public com.helger.commons.state.EChange updateMPC(@Nonnull IMPC aMPC)
IMPCManagerupdateMPC in interface IMPCManageraMPC - The MPC to be updated. May not be null.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.@Nonnull public com.helger.commons.state.EChange markMPCDeleted(@Nullable String sMPCID)
IMPCManagermarkMPCDeleted in interface IMPCManagersMPCID - The ID of the MPC to be marked as deleted. May be null.EChange.CHANGED if marking as deleted succeeded,
EChange.UNCHANGED otherwise.@Nonnull public com.helger.commons.state.EChange deleteMPC(@Nullable String sMPCID)
IMPCManagerdeleteMPC in interface IMPCManagersMPCID - The ID of the MPC to be deleted. May be null.EChange.CHANGED if deleting succeeded,
EChange.UNCHANGED otherwise.@Nullable public IMPC getMPCOfID(@Nullable String sID)
IMPCManagergetMPCOfID in interface IMPCManagersID - The ID to search. May be null.null if no such MPC exists, the MPC otherwise.public boolean containsWithID(String sID)
IMPCManagercontainsWithID in interface IMPCManagersID - The ID to search. May be null.true if such an MPC is contained, false
otherwise.Copyright © 2015–2020 Philip Helger. All rights reserved.