public interface IFlagContainer extends IReadonlyFlagContainer, IClearable
IReadonlyFlagContainer.| Modifier and Type | Method and Description |
|---|---|
EChange |
addFlag(String sName)
Add a flag if it is not yet present.
|
EChange |
addFlags(Collection<String> aValues)
Add an arbitrary number of flags if they are not yet present.
|
EChange |
addFlags(String... aValues)
Add an arbitrary number of flags if they are not yet present.
|
EChange |
removeFlag(String sName)
Remove the specified flag from the container.
|
containsFlag, containsNoFlag, getAllFlags, getFlagCountclear@Nonnull EChange addFlag(@Nonnull String sName)
sName - The name of the flag. May not be null.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.removeFlag(String)@Nonnull EChange addFlags(@Nullable Collection<String> aValues)
aValues - The collections of flags to be set. May be null.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.addFlag(String)@Nonnull EChange addFlags(@Nullable String... aValues)
aValues - The collections of flags to be set. May be null.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.addFlag(String)@Nonnull EChange removeFlag(@Nullable String sName)
sName - The flag name to be removed. If it is null nothing
happens.EChange.CHANGED if something changed,
EChange.UNCHANGED otherwise.Copyright © 2006–2015 phloc systems. All rights reserved.