@NotThreadSafe public final class ReadonlyFlagContainer extends Object implements IReadonlyFlagContainer
IReadonlyFlagContainer based on a hash
set.| Constructor and Description |
|---|
ReadonlyFlagContainer(Collection<String> aValues) |
ReadonlyFlagContainer(IReadonlyFlagContainer aCont) |
ReadonlyFlagContainer(String... aValues) |
| Modifier and Type | Method and Description |
|---|---|
boolean |
containsFlag(String sName)
Check if an flag of the given name is contained.
|
boolean |
containsNoFlag() |
boolean |
equals(Object o) |
Set<String> |
getAllFlags() |
int |
getFlagCount() |
int |
hashCode() |
String |
toString() |
public ReadonlyFlagContainer(@Nonnull Collection<String> aValues)
public ReadonlyFlagContainer(@Nonnull IReadonlyFlagContainer aCont)
public boolean containsFlag(@Nullable String sName)
IReadonlyFlagContainercontainsFlag in interface IReadonlyFlagContainersName - name of the flag to checktrue if the flag is contained, false
otherwise@Nonnull @ReturnsMutableCopy public Set<String> getAllFlags()
getAllFlags in interface IReadonlyFlagContainernull set with all contained flags.@Nonnegative public int getFlagCount()
getFlagCount in interface IReadonlyFlagContainerpublic boolean containsNoFlag()
containsNoFlag in interface IReadonlyFlagContainertrue if this flag container does not contain any flag
at all, false if at least one flag is contained.Copyright © 2006–2015 phloc systems. All rights reserved.