| |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
A list of information. This type of list is returned from World.getSquareInfo() World.getHumanInfo() World.getConstructionInfo() World.getActionsInfo() World.getConstructionsInfo() World.getResourcesInfo()
Field Summary | |
protected final static Boolean | bF A cached Boolean false value. |
final static int | BOOLEAN The Boolean type. |
protected final static Boolean | bT A cached Boolean true value. |
final static int | PERCENTAGE The Percentage type. |
final static int | STRING The formatted String type. |
final static int | VALUE The Value type. |
Constructor Summary | |
InfoList() Create a new empty InfoList. |
Method Summary | |
void | add(String name, int type, String value) Add an element to this InfoList. |
void | add(String name, int type, boolean value) Add an element to this InfoList. |
void | add(String name, int type, double value) Add an element to this InfoList. |
boolean | getBoolean() Get the BOOLEAN value of the current record. |
String | getName() Get the name of the current record. |
double | getPercentage() Get the PERCENTAGE value of the current record. |
String | getString() Get the STRING value of the current record. |
int | getType() Get the type of the current record. |
double | getValue() Get the VALUE value of the current record. |
static void | main(String[] args) Test program. |
boolean | next() Iterate to the next element. |
void | print() For debugging, print to stdout. |
void | reset() Reset the iterator. |
Field Detail |
protected final static Boolean bF
public final static int BOOLEAN
protected final static Boolean bT
public final static int PERCENTAGE
public final static int STRING
public final static int VALUE
Constructor Detail |
public InfoList()
Method Detail |
public void add(String name, int type, String value)
public void add(String name, int type, boolean value)
public void add(String name, int type, double value)
public boolean getBoolean()
throws java.util.NoSuchElementException
public String getName()
throws java.util.NoSuchElementException
public double getPercentage()
throws java.util.NoSuchElementException
public String getString()
throws java.util.NoSuchElementException
public int getType()
throws java.util.NoSuchElementException
public double getValue()
throws java.util.NoSuchElementException
public static void main(String[] args)
throws java.lang.Exception
public boolean next()
public void print()
public void reset()
Association Links |
to Class java.util.Iterator
| a gvijf production | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |