T
- the element typepublic class CmsDefaultSet<T> extends java.lang.Object implements com.google.gwt.user.client.rpc.IsSerializable
Constructor and Description |
---|
CmsDefaultSet() |
Modifier and Type | Method and Description |
---|---|
void |
checkNotFrozen()
Checks that this object isn't frozen.
|
boolean |
contains(T value)
Returns true if the given object is a member of this set.
|
void |
freeze()
Makes the object unmodifiable.
|
java.util.Map<T,java.lang.Boolean> |
getBaseMap()
Gets the map internally used for storing the membership statuses.
|
boolean |
getDefaultMembership()
Gets the default membership value.
|
void |
setContains(T value,
boolean isMember)
Sets the membership of an object.
|
void |
setDefaultMembership(boolean defaultMembership)
Sets the default membership value.
|
public CmsDefaultSet()
public void checkNotFrozen()
public boolean contains(T value)
value
- the value to checkpublic void freeze()
public java.util.Map<T,java.lang.Boolean> getBaseMap()
public boolean getDefaultMembership()
public void setContains(T value, boolean isMember)
value
- the objectisMember
- true if the object should be a member, otherwise falsepublic void setDefaultMembership(boolean defaultMembership)
defaultMembership
- the new value