org.sakaiproject.component.legacy.time
Class BasicTimeService.MyTimeBreakdown

java.lang.Object
  extended byorg.sakaiproject.component.legacy.time.BasicTimeService.MyTimeBreakdown
All Implemented Interfaces:
TimeBreakdown
Enclosing class:
BasicTimeService

public class BasicTimeService.MyTimeBreakdown
extends Object
implements TimeBreakdown

TimeBreakdown implementation


Field Summary
protected  int day
           
protected  int hour
           
protected  int min
           
protected  int month
           
protected  int ms
           
protected  int sec
           
protected  int year
          The parts.
 
Constructor Summary
BasicTimeService.MyTimeBreakdown(int y, int m, int d, int h, int minutes, int s, int milliseconds)
           
BasicTimeService.MyTimeBreakdown(TimeBreakdown other)
           
 
Method Summary
 int getDay()
          Access the day value.
 int getHour()
          Access the hour value.
 int getMin()
          Access the minute value.
 int getMonth()
          Access the month value.
 int getMs()
          Access the millisecond value.
 int getSec()
          Access the second value.
 int getYear()
          Access the year value.
 void setDay(int i)
          Set the day value.
 void setHour(int i)
          Set the hour value.
 void setMin(int i)
          Set the minute value.
 void setMonth(int i)
          Set the month value.
 void setMs(int i)
          Set the millisecond value.
 void setSec(int i)
          Set the second value.
 void setYear(int i)
          Set the year value.
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

year

protected int year
The parts.


month

protected int month

day

protected int day

hour

protected int hour

min

protected int min

sec

protected int sec

ms

protected int ms
Constructor Detail

BasicTimeService.MyTimeBreakdown

public BasicTimeService.MyTimeBreakdown(int y,
                                        int m,
                                        int d,
                                        int h,
                                        int minutes,
                                        int s,
                                        int milliseconds)

BasicTimeService.MyTimeBreakdown

public BasicTimeService.MyTimeBreakdown(TimeBreakdown other)
Method Detail

toString

public String toString()

getYear

public int getYear()
Description copied from interface: TimeBreakdown
Access the year value.

Specified by:
getYear in interface TimeBreakdown
Returns:
The year value.

getMonth

public int getMonth()
Description copied from interface: TimeBreakdown
Access the month value.

Specified by:
getMonth in interface TimeBreakdown
Returns:
The month value.

getDay

public int getDay()
Description copied from interface: TimeBreakdown
Access the day value.

Specified by:
getDay in interface TimeBreakdown
Returns:
The day value.

getHour

public int getHour()
Description copied from interface: TimeBreakdown
Access the hour value.

Specified by:
getHour in interface TimeBreakdown
Returns:
The hour value.

getMin

public int getMin()
Description copied from interface: TimeBreakdown
Access the minute value.

Specified by:
getMin in interface TimeBreakdown
Returns:
The minute. value.

getSec

public int getSec()
Description copied from interface: TimeBreakdown
Access the second value.

Specified by:
getSec in interface TimeBreakdown
Returns:
The second value.

getMs

public int getMs()
Description copied from interface: TimeBreakdown
Access the millisecond value.

Specified by:
getMs in interface TimeBreakdown
Returns:
The millisecond value.

setDay

public void setDay(int i)
Description copied from interface: TimeBreakdown
Set the day value.

Specified by:
setDay in interface TimeBreakdown
Parameters:
i -

setHour

public void setHour(int i)
Description copied from interface: TimeBreakdown
Set the hour value.

Specified by:
setHour in interface TimeBreakdown
Parameters:
i -

setMin

public void setMin(int i)
Description copied from interface: TimeBreakdown
Set the minute value.

Specified by:
setMin in interface TimeBreakdown
Parameters:
i -

setMonth

public void setMonth(int i)
Description copied from interface: TimeBreakdown
Set the month value.

Specified by:
setMonth in interface TimeBreakdown
Parameters:
i -

setMs

public void setMs(int i)
Description copied from interface: TimeBreakdown
Set the millisecond value.

Specified by:
setMs in interface TimeBreakdown
Parameters:
i -

setSec

public void setSec(int i)
Description copied from interface: TimeBreakdown
Set the second value.

Specified by:
setSec in interface TimeBreakdown
Parameters:
i -

setYear

public void setYear(int i)
Description copied from interface: TimeBreakdown
Set the year value.

Specified by:
setYear in interface TimeBreakdown
Parameters:
i -