|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectggz.common.NumberList
public class NumberList
This class provides a method for storing and retrieving a simple list of positive integers. The list must follow a very restrictive form: each value within [1..32] may be included explicitly in the list. Higher values may only be included as the part of a single given range [x..y]. This provides GGZ-specific functionality that is common to some or all of the ggz-server, game-server, ggz-client, and game-client.
Constructor Summary | |
---|---|
NumberList()
Creates an empty number list. |
Method Summary | |
---|---|
int |
get_max()
|
int |
get_min()
|
boolean |
isset(int value)
Checks to see if the given value is set in the number list. |
static NumberList |
read(java.lang.String text)
Reads a number list from a text string. |
java.lang.String |
write()
Writes a number list to a text string. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public NumberList()
Method Detail |
---|
public static NumberList read(java.lang.String text)
public java.lang.String write()
public boolean isset(int value)
public int get_min()
public int get_max()
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |