Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.metacosm.zheroez
Class DateThera  view DateThera download DateThera.java

java.lang.Object
  extended byorg.metacosm.framework.world.Date
      extended byorg.metacosm.zheroez.DateThera
All Implemented Interfaces:
java.lang.Cloneable, java.lang.Comparable, java.io.Serializable

public class DateThera
extends org.metacosm.framework.world.Date

Date in the Thera World TODO: internationalization


Field Summary
private  int day
           
private static java.lang.String[] dayName
           
private static int[] dayParts
           
private static java.lang.String[] dayPartsName
           
private static int DAYS_BY_MONTH
           
private static int DAYS_BY_WEEK
           
private  int hour
           
private static int HOURS_BY_DAY
           
private  int month
           
private static java.lang.String[] monthName
           
private static int MONTHS_BY_YEAR
           
private static int TICKS_BY_DAY
           
private static int TICKS_BY_HOUR
           
private static int TICKS_BY_MONTH
           
private static int TICKS_BY_YEAR
           
private  int year
           
 
Fields inherited from class org.metacosm.framework.world.Date
 
Constructor Summary
DateThera()
           
DateThera(long ticks)
           
 
Method Summary
 int getDay()
           
 int getHour()
           
 int getMonth()
           
 int getPartOfDay()
           
 int getYear()
           
 void setTicks(long ticks)
          Sets this Date object to represent a point in time that is ticks ticks after game clock started
 java.lang.String toString()
          Convert this Object to a human-readable String.
private  void updateFields()
           
 
Methods inherited from class org.metacosm.framework.world.Date
after, before, compareTo, compareTo, equals, getTicks
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

dayName

private static final java.lang.String[] dayName

monthName

private static final java.lang.String[] monthName

dayPartsName

private static final java.lang.String[] dayPartsName

dayParts

private static final int[] dayParts

TICKS_BY_HOUR

private static final int TICKS_BY_HOUR
See Also:
Constant Field Values

HOURS_BY_DAY

private static final int HOURS_BY_DAY
See Also:
Constant Field Values

DAYS_BY_WEEK

private static final int DAYS_BY_WEEK
See Also:
Constant Field Values

DAYS_BY_MONTH

private static final int DAYS_BY_MONTH
See Also:
Constant Field Values

MONTHS_BY_YEAR

private static final int MONTHS_BY_YEAR
See Also:
Constant Field Values

TICKS_BY_DAY

private static final int TICKS_BY_DAY
See Also:
Constant Field Values

TICKS_BY_MONTH

private static final int TICKS_BY_MONTH
See Also:
Constant Field Values

TICKS_BY_YEAR

private static final int TICKS_BY_YEAR
See Also:
Constant Field Values

year

private int year

month

private int month

day

private int day

hour

private int hour
Constructor Detail

DateThera

public DateThera()

DateThera

public DateThera(long ticks)
Method Detail

updateFields

private void updateFields()

getHour

public final int getHour()

getDay

public final int getDay()

getMonth

public final int getMonth()

getYear

public final int getYear()

getPartOfDay

public final int getPartOfDay()

setTicks

public final void setTicks(long ticks)
Description copied from class: org.metacosm.framework.world.Date
Sets this Date object to represent a point in time that is ticks ticks after game clock started


toString

public final java.lang.String toString()
Description copied from class: java.lang.Object
Convert this Object to a human-readable String. There are no limits placed on how long this String should be or what it should contain. We suggest you make it as intuitive as possible to be able to place it into System.out.println() 55 and such.

It is typical, but not required, to ensure that this method never completes abruptly with a java.lang.RuntimeException.

This method will be called when performing string concatenation with this object. If the result is null, string concatenation will instead use "null".

The default implementation returns getClass().getName() + "@" + Integer.toHexString(hashCode()).