com.sap.scheduler.api

Class SchedulerTime

java.lang.Object
  extended by com.sap.scheduler.api.SchedulerTime
All Implemented Interfaces:
Serializable, Comparable

public final class SchedulerTime
extends Object
implements Comparable, Serializable

This class represents a scheduler time

See Also:
Serialized Form

Constructor Summary
SchedulerTime()
          Constructs a scheduler time object with the current time
SchedulerTime(Date time, TimeZone timeZone)
          Constructs a scheduler time object with specified time and time zone
SchedulerTime(long time, TimeZone timeZone)
          Constructs a scheduler time object with specified time and time zone
 
Method Summary
 int compareTo(Object other)
          Compares two scheduler time objects
 boolean equals(Object other)
          Checks if the object is the same
 Date getTime()
          Getter method
 TimeZone getTimeZone()
          Getter method
 int hashCode()
          Calculates a hashcode
 long timeMillis()
          Getter method
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchedulerTime

public SchedulerTime()
Constructs a scheduler time object with the current time


SchedulerTime

public SchedulerTime(Date time,
                     TimeZone timeZone)
Constructs a scheduler time object with specified time and time zone

Parameters:
time - the time as a Date object
timeZone - the time zone

SchedulerTime

public SchedulerTime(long time,
                     TimeZone timeZone)
Constructs a scheduler time object with specified time and time zone

Parameters:
time - the time in milliseconds
timeZone - the time zone
Method Detail

getTime

public Date getTime()
Getter method

Returns:
the Date

getTimeZone

public TimeZone getTimeZone()
Getter method

Returns:
the time zone

timeMillis

public long timeMillis()
Getter method

Returns:
the time in milliseconds

compareTo

public int compareTo(Object other)
Compares two scheduler time objects

Specified by:
compareTo in interface Comparable
Parameters:
other - the other object
Returns:
compare value

equals

public boolean equals(Object other)
Checks if the object is the same

Overrides:
equals in class Object
Parameters:
other - the 'other' object
Returns:
TRUE if the objects are identical, FALSE if not

hashCode

public int hashCode()
Calculates a hashcode

Overrides:
hashCode in class Object
Returns:
the hashcode
Access Rights

This class can be accessed from:


SC DC
[sap.com] ENGFACADE [sap.com] tc/je/scheduler/api


Copyright 2010 SAP AG Complete Copyright Notice