net.degreedays.time
Class DayOfWeek

java.lang.Object
  extended by net.degreedays.time.DayOfWeek
All Implemented Interfaces:
java.io.Serializable

public final class DayOfWeek
extends java.lang.Object
implements java.io.Serializable

Instances of this class are immutable. You can safely reuse them and call them from multiple threads at once.


Field Summary
static DayOfWeek FRIDAY
           
static DayOfWeek MONDAY
           
static DayOfWeek SATURDAY
           
static DayOfWeek SUNDAY
           
static DayOfWeek THURSDAY
           
static DayOfWeek TUESDAY
           
static DayOfWeek WEDNESDAY
           
 
Method Summary
static DayOfWeek fromIsoIndex(int isoIndex)
           
static DayOfWeek fromString(java.lang.String name)
           
 boolean isFriday()
           
 boolean isMonday()
           
 int isoIndex()
           
 boolean isSaturday()
           
 boolean isSunday()
           
 boolean isThursday()
           
 boolean isTuesday()
           
 boolean isWednesday()
           
 DayOfWeek next()
           
 DayOfWeek previous()
           
 java.lang.String toString()
           
static DayOfWeek[] values()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

MONDAY

public static final DayOfWeek MONDAY

TUESDAY

public static final DayOfWeek TUESDAY

WEDNESDAY

public static final DayOfWeek WEDNESDAY

THURSDAY

public static final DayOfWeek THURSDAY

FRIDAY

public static final DayOfWeek FRIDAY

SATURDAY

public static final DayOfWeek SATURDAY

SUNDAY

public static final DayOfWeek SUNDAY
Method Detail

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

isoIndex

public int isoIndex()

isMonday

public boolean isMonday()

isTuesday

public boolean isTuesday()

isWednesday

public boolean isWednesday()

isThursday

public boolean isThursday()

isFriday

public boolean isFriday()

isSaturday

public boolean isSaturday()

isSunday

public boolean isSunday()

next

public DayOfWeek next()

previous

public DayOfWeek previous()

fromString

public static DayOfWeek fromString(java.lang.String name)
                            throws java.lang.IllegalArgumentException
Throws:
java.lang.NullPointerException - if name is null.
java.lang.IllegalArgumentException - if name is not one of "Monday", "Tuesday", "Wednesday", "Thursday", "Friday", "Saturday", or "Sunday".

fromIsoIndex

public static DayOfWeek fromIsoIndex(int isoIndex)
Throws:
java.lang.IndexOutOfBoundsException - if isoIndex is not 1, 2, 3, 4, 5, 6, or 7.

values

public static DayOfWeek[] values()


www.degreedays.net/api/