|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--uk.org.redfelineninja.risk.data.Continent
Data type representing a Continent.
Field Summary | |
java.lang.String |
name
|
int |
value
|
Constructor Summary | |
Continent(java.lang.String n,
int v)
Create a new continent. |
Method Summary | |
boolean |
addCountry(java.lang.String c)
Add a country to this continent. |
java.util.Enumeration |
countries()
Provides a list of the countries contained within this continent. |
boolean |
equals(java.lang.Object obj)
Compare two continents for equality. |
Methods inherited from class java.lang.Object |
getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public final java.lang.String name
public final int value
Constructor Detail |
public Continent(java.lang.String n, int v)
No two different continents should have the same name, see the equals method.
Method Detail |
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public boolean addCountry(java.lang.String c)
public java.util.Enumeration countries()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |