@NotThreadSafe public final class PartnershipMap extends Object implements IPartnershipMap
IPartnershipMap.| Constructor and Description |
|---|
PartnershipMap() |
| Modifier and Type | Method and Description |
|---|---|
com.helger.commons.state.EChange |
addPartnership(Partnership aPartnership)
Add a new partnership.
|
com.helger.commons.collection.impl.ICommonsOrderedSet<String> |
getAllPartnershipNames() |
com.helger.commons.collection.impl.ICommonsList<Partnership> |
getAllPartnerships() |
Partnership |
getPartnershipByID(com.helger.commons.collection.attr.IStringMap aSenderIDs,
com.helger.commons.collection.attr.IStringMap aReceiverIDs) |
Partnership |
getPartnershipByName(String sName) |
com.helger.commons.state.EChange |
removePartnership(Partnership aPartnership)
Remove the provided partnership.
|
void |
setPartnership(Partnership aPartnership)
Overwrite an existing partnership.
|
void |
setPartnerships(PartnershipMap aPartnerships)
Set all partnerships from the passed map.
|
public void setPartnerships(@Nonnull PartnershipMap aPartnerships)
aPartnerships - The partnerships to be set. May not be null.@Nonnull public com.helger.commons.state.EChange addPartnership(@Nonnull Partnership aPartnership)
aPartnership - The partnership to be added. May not be null.EChange.CHANGED if adding was successfully,
EChange.UNCHANGED if a partnership with the given name is
already present and nothing changed.public void setPartnership(@Nonnull Partnership aPartnership)
aPartnership - The partnership to be set (and potentially overwritten). May not be
null.@Nonnull public com.helger.commons.state.EChange removePartnership(@Nonnull Partnership aPartnership)
aPartnership - The partnership to be removed. May not be null.EChange.CHANGED if removal was successful,
EChange.UNCHANGED if no such partnership is contained.@Nullable public Partnership getPartnershipByName(@Nullable String sName)
getPartnershipByName in interface IPartnershipMap@Nullable public Partnership getPartnershipByID(@Nonnull com.helger.commons.collection.attr.IStringMap aSenderIDs, @Nonnull com.helger.commons.collection.attr.IStringMap aReceiverIDs)
getPartnershipByID in interface IPartnershipMap@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsOrderedSet<String> getAllPartnershipNames()
getAllPartnershipNames in interface IPartnershipMap@Nonnull @ReturnsMutableCopy public com.helger.commons.collection.impl.ICommonsList<Partnership> getAllPartnerships()
getAllPartnerships in interface IPartnershipMapCopyright © 2013–2022 Philip Helger. All rights reserved.