DefaultRoomnumberSet
public interface RoomnumberSet extends CMCommon
LongSet
idConverter
Modifier and Type | Method | Description |
---|---|---|
void |
add(RoomnumberSet set) |
Adds a set of room ids to this object
|
void |
add(java.lang.String str) |
Adds the given room id to this object
|
boolean |
contains(java.lang.String str) |
Returns whether the given room id is stored here
|
java.util.Iterator<java.lang.String> |
getAreaNames() |
Returns an enumerator for all area names in this object
|
LongSet |
getGrouper(java.lang.String areaName) |
Returns the number parts of the room ids stored in this
object for a given area.
|
long |
getLastChangedMs() |
Returns timestamp of when this was last altered
|
java.util.Enumeration<java.lang.String> |
getRoomIDs() |
Returns an enumerator for all room ids in this object
|
boolean |
isEmpty() |
Returns whether any rooms at all are defined.
|
void |
parseXML(java.lang.String xml) |
Restores this object from an xml document
|
java.lang.String |
random() |
Returns a random, fully qualified room id from those
stored in here.
|
void |
remove(java.lang.String str) |
Removes a single room id from this object
|
int |
roomCount(java.lang.String areaName) |
Returns the number of room ids stored for the
given Area name.
|
int |
roomCountAllAreas() |
Returns the total number of room ids stored here
|
void |
setSingleAreaFlag(boolean tf) |
Sets whether this set should never contain more
than one Area.
|
java.lang.String |
xml() |
Converts the contents of this object into an xml
document.
|
copyOf, ID, initializeClass, name, newInstance
int roomCount(java.lang.String areaName)
areaName
- the Area to count the rooms ofint roomCountAllAreas()
boolean isEmpty()
boolean contains(java.lang.String str)
str
- the room id to look forjava.lang.String xml()
void parseXML(java.lang.String xml)
xml
- contents for this object as an xmlvoid setSingleAreaFlag(boolean tf)
tf
- true to use one area, false for manyvoid add(java.lang.String str)
str
- a room idvoid add(RoomnumberSet set)
set
- the room ids to addvoid remove(java.lang.String str)
str
- the room id to remove from this objectjava.lang.String random()
java.util.Enumeration<java.lang.String> getRoomIDs()
long getLastChangedMs()
java.util.Iterator<java.lang.String> getAreaNames()