JTools

org.jtools.util
Enum Holiday

java.lang.Object
  extended by java.lang.Enum<Holiday>
      extended by org.jtools.util.Holiday
All Implemented Interfaces:
Serializable, Comparable<Holiday>

public enum Holiday
extends Enum<Holiday>

TODO type-description

Author:
Rainer Noack

Enum Constant Summary
ADVENT
          1.
ADVENT2
           
ADVENT3
           
ADVENT4
           
ASCENSION
           
ASH_WEDNESDAY
           
BOXING_DAY
           
CARNIVAL_MONDAY
           
CHRISTMAS
           
CHRISTMASEVE
           
CORPUS_CHRISTI
           
EASTER_MONDAY
           
EASTERN
           
GERMAN_UNIFICATION_DAY
           
GOOD_FRIDAY
           
MAY_DAY
           
MEMORIAL_DAY
           
MOTHERS_DAY
           
NEWYEARSDAY
           
NEWYEARSEVE
           
PALM_SUNDAY
           
SANTACLAUS
           
SHROVE_TUESDAY
           
THANKSGIVING
           
WAELDCHESTAG
           
WHIT_MONDAY
           
WHIT_SUNDAY
           
 
Method Summary
abstract
<T_Return,T_Data>
T_Return
accept(HolidayVisitor<T_Return,T_Data> visitor, T_Data... data)
           
static Holiday valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Holiday[] values()
          Returns an array containing the constants of this enum type, in the order they're declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

ADVENT

public static final Holiday ADVENT
1. Adventssonntag


ADVENT2

public static final Holiday ADVENT2

ADVENT3

public static final Holiday ADVENT3

ADVENT4

public static final Holiday ADVENT4

ASCENSION

public static final Holiday ASCENSION

ASH_WEDNESDAY

public static final Holiday ASH_WEDNESDAY

CARNIVAL_MONDAY

public static final Holiday CARNIVAL_MONDAY

CHRISTMAS

public static final Holiday CHRISTMAS

BOXING_DAY

public static final Holiday BOXING_DAY

CHRISTMASEVE

public static final Holiday CHRISTMASEVE

CORPUS_CHRISTI

public static final Holiday CORPUS_CHRISTI

EASTER_MONDAY

public static final Holiday EASTER_MONDAY

EASTERN

public static final Holiday EASTERN

GERMAN_UNIFICATION_DAY

public static final Holiday GERMAN_UNIFICATION_DAY

GOOD_FRIDAY

public static final Holiday GOOD_FRIDAY

MAY_DAY

public static final Holiday MAY_DAY

MEMORIAL_DAY

public static final Holiday MEMORIAL_DAY

MOTHERS_DAY

public static final Holiday MOTHERS_DAY

NEWYEARSDAY

public static final Holiday NEWYEARSDAY

NEWYEARSEVE

public static final Holiday NEWYEARSEVE

PALM_SUNDAY

public static final Holiday PALM_SUNDAY

SANTACLAUS

public static final Holiday SANTACLAUS

SHROVE_TUESDAY

public static final Holiday SHROVE_TUESDAY

THANKSGIVING

public static final Holiday THANKSGIVING

WAELDCHESTAG

public static final Holiday WAELDCHESTAG

WHIT_MONDAY

public static final Holiday WHIT_MONDAY

WHIT_SUNDAY

public static final Holiday WHIT_SUNDAY
Method Detail

values

public static final Holiday[] values()
Returns an array containing the constants of this enum type, in the order they're declared. This method may be used to iterate over the constants as follows:
for(Holiday c : Holiday.values())
        System.out.println(c);

Returns:
an array containing the constants of this enum type, in the order they're declared

valueOf

public static Holiday valueOf(String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (Extraneous whitespace characters are not permitted.)

Parameters:
name - the name of the enum constant to be returned.
Returns:
the enum constant with the specified name
Throws:
IllegalArgumentException - if this enum type has no constant with the specified name

accept

public abstract <T_Return,T_Data> T_Return accept(HolidayVisitor<T_Return,T_Data> visitor,
                                                  T_Data... data)

JTools

© 2000-2006, JTools.org.