com.jakewharton.trakt.enumerations
Enum DayOfTheWeek

java.lang.Object
  extended by java.lang.Enum<DayOfTheWeek>
      extended by com.jakewharton.trakt.enumerations.DayOfTheWeek
All Implemented Interfaces:
TraktEnumeration, Serializable, Comparable<DayOfTheWeek>

public enum DayOfTheWeek
extends Enum<DayOfTheWeek>
implements TraktEnumeration


Enum Constant Summary
Friday
           
Monday
           
Saturday
           
Sunday
           
Thursday
           
Tuesday
           
Wednesday
           
 
Method Summary
static DayOfTheWeek fromValue(String value)
           
 String toString()
           
static DayOfTheWeek valueOf(String name)
          Returns the enum constant of this type with the specified name.
static DayOfTheWeek[] values()
          Returns an array containing the constants of this enum type, in the order they are declared.
 
Methods inherited from class java.lang.Enum
clone, compareTo, equals, finalize, getDeclaringClass, hashCode, name, ordinal, valueOf
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Enum Constant Detail

Sunday

public static final DayOfTheWeek Sunday

Monday

public static final DayOfTheWeek Monday

Tuesday

public static final DayOfTheWeek Tuesday

Wednesday

public static final DayOfTheWeek Wednesday

Thursday

public static final DayOfTheWeek Thursday

Friday

public static final DayOfTheWeek Friday

Saturday

public static final DayOfTheWeek Saturday
Method Detail

values

public static DayOfTheWeek[] 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 (DayOfTheWeek c : DayOfTheWeek.values())
    System.out.println(c);

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

valueOf

public static DayOfTheWeek 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

toString

public String toString()
Overrides:
toString in class Enum<DayOfTheWeek>

fromValue

public static DayOfTheWeek fromValue(String value)


Copyright © 2011 Jake Wharton. All Rights Reserved.