com.starteam
Class User.DayOfWeek

java.lang.Object
  extended by com.starteam.User.DayOfWeek
Enclosing class:
User

public static final class User.DayOfWeek
extends java.lang.Object

The day of week


Field Summary
static User.DayOfWeek[] ALL
          All seven days of the week
static User.DayOfWeek FRIDAY
          Friday
static User.DayOfWeek MONDAY
          Monday
static User.DayOfWeek SATURDAY
          Saturday
static User.DayOfWeek SUNDAY
          Sunday
static User.DayOfWeek THURSDAY
          Thursday
static User.DayOfWeek TUESDAY
          Tuesday
static User.DayOfWeek WEDNESDAY
          Wednesday
 
Method Summary
 boolean equals(java.lang.Object o)
          Compares two days of week
static User.DayOfWeek fromID(int id)
          Gets the DayOfWeek value corresponding to the given ID.
 int getID()
          The ID of the corresponding DayOfWeek
 java.lang.String getName()
          The friendly name for the day
 int hashCode()
          Returns a hashCode for this day of week
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

SUNDAY

public static final User.DayOfWeek SUNDAY
Sunday


MONDAY

public static final User.DayOfWeek MONDAY
Monday


TUESDAY

public static final User.DayOfWeek TUESDAY
Tuesday


WEDNESDAY

public static final User.DayOfWeek WEDNESDAY
Wednesday


THURSDAY

public static final User.DayOfWeek THURSDAY
Thursday


FRIDAY

public static final User.DayOfWeek FRIDAY
Friday


SATURDAY

public static final User.DayOfWeek SATURDAY
Saturday


ALL

public static final User.DayOfWeek[] ALL
All seven days of the week

Method Detail

getName

public java.lang.String getName()
The friendly name for the day

Returns:
the friendly name for the day

getID

public int getID()
The ID of the corresponding DayOfWeek

Returns:
The ID of this DayOfWeek value.

fromID

public static User.DayOfWeek fromID(int id)
Gets the DayOfWeek value corresponding to the given ID.

Parameters:
id - A DayOfWeek ID.
Returns:
The corresponding DayOfWeek value, or null.

equals

public boolean equals(java.lang.Object o)
Compares two days of week

Overrides:
equals in class java.lang.Object
Parameters:
o - the Object to compare for equality
Returns:
true if the two are identical

hashCode

public int hashCode()
Returns a hashCode for this day of week

Overrides:
hashCode in class java.lang.Object
Returns:
a hashCode for this day of week


StarTeam SDK 14.0, Build 21
Copyright © 2003-2012 Borland Software Corporation. All rights reserved.