de.unikassel.android.sdcframework.data
Enum Weekday

Package class diagram package Weekday
java.lang.Object
  extended by java.lang.Enum<Weekday>
      extended by de.unikassel.android.sdcframework.data.Weekday
All Implemented Interfaces:
Parcelable, Serializable, Comparable<Weekday>

public enum Weekday
extends Enum<Weekday>
implements Parcelable

Weekday enumeration.


Nested Class Summary
 
Nested classes/interfaces inherited from interface android.os.Parcelable
Parcelable.Creator<T>
 
Enum Constant Summary
Friday
          Friday.
Monday
          Monday.
Saturday
          Saturday.
Sunday
          Sunday.
Thursday
          Thursday.
Tuesday
          Tuesday.
Wednesday
          Wednesday.
 
Field Summary
static Parcelable.Creator<Weekday> CREATOR
          The Parcelable creator.
 
Fields inherited from interface android.os.Parcelable
CONTENTS_FILE_DESCRIPTOR, PARCELABLE_WRITE_RETURN_VALUE
 
Method Summary
 int describeContents()
           
static Weekday next(Weekday current)
          Method to determine the next Weekday after a given one.
static Weekday valueOf(Calendar date)
          Method to determine the Weekday of a given calendar date.
static Weekday valueOf(String name)
          Returns the enum constant of this type with the specified name.
static Weekday valueOfOrdinal(int ordinal)
          Method to determine the Weekday for a given ordinal.
static Weekday[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 void writeToParcel(Parcel dest, int flags)
           
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, toString, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Monday

public static final Weekday Monday
Monday.


Tuesday

public static final Weekday Tuesday
Tuesday.


Wednesday

public static final Weekday Wednesday
Wednesday.


Thursday

public static final Weekday Thursday
Thursday.


Friday

public static final Weekday Friday
Friday.


Saturday

public static final Weekday Saturday
Saturday.


Sunday

public static final Weekday Sunday
Sunday.

Field Detail

CREATOR

public static final Parcelable.Creator<Weekday> CREATOR
The Parcelable creator.

Method Detail

values

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

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

valueOf

public static Weekday 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
NullPointerException - if the argument is null

valueOfOrdinal

public static Weekday valueOfOrdinal(int ordinal)
Method to determine the Weekday for a given ordinal.

Parameters:
ordinal - the ordinal value
Returns:
the Weekday for a given ordinal

next

public static Weekday next(Weekday current)
Method to determine the next Weekday after a given one.

Parameters:
current - the current Weekday
Returns:
the Weekday after the given one

valueOf

public static Weekday valueOf(Calendar date)
Method to determine the Weekday of a given calendar date.

Parameters:
date - the calendar date value
Returns:
the Weekday for the given date

writeToParcel

public void writeToParcel(Parcel dest,
                          int flags)
Specified by:
writeToParcel in interface Parcelable

describeContents

public int describeContents()
Specified by:
describeContents in interface Parcelable