org.inigma.utopia
Class UtopiaDate

java.lang.Object
  extended by org.inigma.utopia.UtopiaDate
All Implemented Interfaces:
java.lang.Comparable<UtopiaDate>

public class UtopiaDate
extends java.lang.Object
implements java.lang.Comparable<UtopiaDate>


Nested Class Summary
static class UtopiaDate.Month
           
 
Field Summary
static UtopiaDate UNKNOWN
           
 
Constructor Summary
UtopiaDate()
           
UtopiaDate(java.lang.String text)
           
UtopiaDate(UtopiaDate.Month month, int date, int year)
           
 
Method Summary
 int compareTo(UtopiaDate ud)
           
 int getDate()
           
 UtopiaDate.Month getMonth()
           
 int getYear()
           
 void setDate(int date)
           
 void setMonth(UtopiaDate.Month month)
           
 void setYear(int year)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

UNKNOWN

public static final UtopiaDate UNKNOWN
Constructor Detail

UtopiaDate

public UtopiaDate()

UtopiaDate

public UtopiaDate(UtopiaDate.Month month,
                  int date,
                  int year)

UtopiaDate

public UtopiaDate(java.lang.String text)
Method Detail

getDate

public int getDate()

getMonth

public UtopiaDate.Month getMonth()

getYear

public int getYear()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

compareTo

public int compareTo(UtopiaDate ud)
Specified by:
compareTo in interface java.lang.Comparable<UtopiaDate>

setDate

public void setDate(int date)

setMonth

public void setMonth(UtopiaDate.Month month)

setYear

public void setYear(int year)


Copyright © 2008. All Rights Reserved.