Großmarkt

market
Class MarketCalendar

java.lang.Object
  |
  +--java.util.Calendar
        |
        +--java.util.GregorianCalendar
              |
              +--market.MarketCalendar
All Implemented Interfaces:
Cloneable, Serializable

public class MarketCalendar
extends GregorianCalendar

The time format used by the market. This is merely a GregorianCalendar with an overwritten toString() method.

See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.GregorianCalendar
AD, BC
 
Fields inherited from class java.util.Calendar
AM, AM_PM, APRIL, areFieldsSet, AUGUST, DATE, DAY_OF_MONTH, DAY_OF_WEEK, DAY_OF_WEEK_IN_MONTH, DAY_OF_YEAR, DECEMBER, DST_OFFSET, ERA, FEBRUARY, FIELD_COUNT, fields, FRIDAY, HOUR, HOUR_OF_DAY, isSet, isTimeSet, JANUARY, JULY, JUNE, MARCH, MAY, MILLISECOND, MINUTE, MONDAY, MONTH, NOVEMBER, OCTOBER, PM, SATURDAY, SECOND, SEPTEMBER, SUNDAY, THURSDAY, time, TUESDAY, UNDECIMBER, WEDNESDAY, WEEK_OF_MONTH, WEEK_OF_YEAR, YEAR, ZONE_OFFSET
 
Constructor Summary
MarketCalendar()
           
MarketCalendar(int year, int month, int date)
           
 
Method Summary
static MarketCalendar create(Calendar gc)
          Takes an arbitrary Calenar and creates a MarketCalendar from it.
 String toString()
           
 
Methods inherited from class java.util.GregorianCalendar
add, computeFields, computeTime, equals, getActualMaximum, getActualMinimum, getGreatestMinimum, getGregorianChange, getLeastMaximum, getMaximum, getMinimum, hashCode, isLeapYear, roll, roll, setGregorianChange
 
Methods inherited from class java.util.Calendar
after, before, clear, clear, clone, complete, get, getAvailableLocales, getFirstDayOfWeek, getInstance, getInstance, getInstance, getInstance, getMinimalDaysInFirstWeek, getTime, getTimeInMillis, getTimeZone, internalGet, isLenient, isSet, set, set, set, set, setFirstDayOfWeek, setLenient, setMinimalDaysInFirstWeek, setTime, setTimeInMillis, setTimeZone
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

MarketCalendar

public MarketCalendar()

MarketCalendar

public MarketCalendar(int year,
                      int month,
                      int date)
Parameters:
year - the new Calendar's year.
month - the new Calendar's month.
date - the new Calendar's date.
Method Detail

create

public static MarketCalendar create(Calendar gc)
Takes an arbitrary Calenar and creates a MarketCalendar from it.

Parameters:
gc - the original Calendar.
Returns:
a MarketCalendar representing the same date as the passed Calendar.

toString

public String toString()
Overrides:
toString in class Calendar
Returns:
the Calendar as dd.MM.yyyy (e.g. 01.01.2000).

Großmarkt