|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectdip.world.Phase.SeasonType
Represents seasons
SeasonType constants should be used, rather than creating new SeasonType objects.
Field Summary | |
static Phase.SeasonType[] |
ALL
SeasonType array Warning: this should not be mutated. |
protected static java.lang.String |
CONST_FALL
|
protected static java.lang.String |
CONST_SPRING
|
protected static java.lang.String |
CONST_SUMMER
|
protected static java.lang.String |
CONST_WINTER
|
protected java.lang.String |
displayName
|
static Phase.SeasonType |
FALL
Fall season |
protected static java.lang.String |
IL8N_FALL
|
protected static java.lang.String |
IL8N_SPRING
|
protected static int |
POS_FALL
|
protected static int |
POS_SPRING
|
protected int |
position
|
static Phase.SeasonType |
SPRING
Spring season |
Constructor Summary | |
protected |
Phase.SeasonType(java.lang.String il8nKey,
int pos)
Creates a new SeasonType |
Method Summary | |
int |
compareTo(java.lang.Object obj)
Compares the order of two seasons. |
boolean |
equals(java.lang.Object obj)
Returns true if SeasonType objects are equivalent |
java.lang.String |
getBriefName()
Brief name of a Season (e.g., [F]all, [S]pring) |
Phase.SeasonType |
getNext()
Get the next season |
Phase.SeasonType |
getPrevious()
Get the previous season |
int |
hashCode()
Returns the hashCode |
static Phase.SeasonType |
parse(java.lang.String in)
Parse input to determine season; return null if input cannot be parsed into a known SeasonType constant. |
protected java.lang.Object |
readResolve()
Resolves the serialized reference into a constant |
java.lang.String |
toString()
Return the name of this season |
Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
Field Detail |
protected static final java.lang.String CONST_SPRING
protected static final java.lang.String CONST_FALL
protected static final java.lang.String CONST_SUMMER
protected static final java.lang.String CONST_WINTER
protected static final java.lang.String IL8N_SPRING
protected static final java.lang.String IL8N_FALL
protected static final int POS_SPRING
protected static final int POS_FALL
public static final Phase.SeasonType SPRING
public static final Phase.SeasonType FALL
public static final Phase.SeasonType[] ALL
protected final int position
protected transient java.lang.String displayName
Constructor Detail |
protected Phase.SeasonType(java.lang.String il8nKey, int pos)
Method Detail |
public java.lang.String toString()
public java.lang.String getBriefName()
public int hashCode()
public boolean equals(java.lang.Object obj)
true
if SeasonType objects are equivalent
public int compareTo(java.lang.Object obj)
Fall always follows Spring.
compareTo
in interface java.lang.Comparable
public Phase.SeasonType getNext()
public Phase.SeasonType getPrevious()
public static Phase.SeasonType parse(java.lang.String in)
Note: SUMMER and WINTER are converted to Spring and Fall, respectively.
protected java.lang.Object readResolve() throws java.io.ObjectStreamException
java.io.ObjectStreamException
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |