dip.world
Class Phase.SeasonType

java.lang.Object
  extended bydip.world.Phase.SeasonType
All Implemented Interfaces:
java.lang.Comparable, java.io.Serializable
Enclosing class:
Phase

public static class Phase.SeasonType
extends java.lang.Object
implements java.io.Serializable, java.lang.Comparable

Represents seasons

SeasonType constants should be used, rather than creating new SeasonType objects.

See Also:
Serialized Form

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

CONST_SPRING

protected static final java.lang.String CONST_SPRING
See Also:
Constant Field Values

CONST_FALL

protected static final java.lang.String CONST_FALL
See Also:
Constant Field Values

CONST_SUMMER

protected static final java.lang.String CONST_SUMMER
See Also:
Constant Field Values

CONST_WINTER

protected static final java.lang.String CONST_WINTER
See Also:
Constant Field Values

IL8N_SPRING

protected static final java.lang.String IL8N_SPRING
See Also:
Constant Field Values

IL8N_FALL

protected static final java.lang.String IL8N_FALL
See Also:
Constant Field Values

POS_SPRING

protected static final int POS_SPRING
See Also:
Constant Field Values

POS_FALL

protected static final int POS_FALL
See Also:
Constant Field Values

SPRING

public static final Phase.SeasonType SPRING
Spring season


FALL

public static final Phase.SeasonType FALL
Fall season


ALL

public static final Phase.SeasonType[] ALL
SeasonType array Warning: this should not be mutated.


position

protected final int position

displayName

protected transient java.lang.String displayName
Constructor Detail

Phase.SeasonType

protected Phase.SeasonType(java.lang.String il8nKey,
                           int pos)
Creates a new SeasonType

Method Detail

toString

public java.lang.String toString()
Return the name of this season


getBriefName

public java.lang.String getBriefName()
Brief name of a Season (e.g., [F]all, [S]pring)


hashCode

public int hashCode()
Returns the hashCode


equals

public boolean equals(java.lang.Object obj)
Returns true if SeasonType objects are equivalent


compareTo

public int compareTo(java.lang.Object obj)
Compares the order of two seasons.

Fall always follows Spring.

Specified by:
compareTo in interface java.lang.Comparable

getNext

public Phase.SeasonType getNext()
Get the next season


getPrevious

public Phase.SeasonType getPrevious()
Get the previous season


parse

public 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.

Note: SUMMER and WINTER are converted to Spring and Fall, respectively.


readResolve

protected java.lang.Object readResolve()
                                throws java.io.ObjectStreamException
Resolves the serialized reference into a constant

Throws:
java.io.ObjectStreamException


Copyright 2002-2004 Zachary DelProposto / jDip Development Team. All Rights Reserved.