5.1 Action Request System Java API

com.remedy.arsys.api
Class Time

java.lang.Object
  |
  +--com.remedy.arsys.api.Time
All Implemented Interfaces:
java.lang.Cloneable, java.io.Serializable

public class Time
extends java.lang.Object
implements java.lang.Cloneable, java.io.Serializable

The Time class represents the time elapsed since midnight.

See Also:
Serialized Form

Constructor Summary
Time()
          constructor
Time(long l)
           
 
Method Summary
 java.lang.Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(java.lang.Object anObject)
          Use this method for checking equality of Time.
 long getValue()
          Returns the number of seconds since midnight.
 void setValue(long l)
          Sets the number of seconds for the time (in long integer format).
 void setValue(Time tm)
          Sets the time to the the given time.
 java.lang.String toString()
          Returns a string description of the time.
 
Methods inherited from class java.lang.Object
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Time

public Time()
constructor

Time

public Time(long l)
Method Detail

setValue

public void setValue(long l)
Sets the number of seconds for the time (in long integer format).

setValue

public void setValue(Time tm)
Sets the time to the the given time.

getValue

public long getValue()
Returns the number of seconds since midnight.

toString

public java.lang.String toString()
Returns a string description of the time.
Overrides:
toString in class java.lang.Object

equals

public boolean equals(java.lang.Object anObject)
Use this method for checking equality of Time. The result is true if and only if the argument is not null and is a Time object that represents the same content.
Overrides:
equals in class java.lang.Object

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.
Overrides:
clone in class java.lang.Object

5.1 Action Request System Java API