AR System Java API

com.bmc.arsys.api
Class Time

java.lang.Object
  extended by com.bmc.arsys.api.Time
All Implemented Interfaces:
Serializable, Cloneable

public class Time
extends Object
implements Cloneable, Serializable

The Time class represents the time elapsed since midnight.

See Also:
Serialized Form

Constructor Summary
Time()
          constructor
Time(long l)
           
Time(String str)
           
 
Method Summary
 Object clone()
          Clone implementation that returns an Object with data cloned from self.
 boolean equals(Object obj)
          Use this method for checking equality of Time.
 long getValue()
          Returns the number of seconds since midnight.
 int hashCode()
           
 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.
 String toString()
          Returns a string description of the time.
 
Methods inherited from class java.lang.Object
getClass, notify, notifyAll, wait, wait, wait
 

Constructor Detail

Time

public Time()
constructor


Time

public Time(long l)

Time

public Time(String str)
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 String toString()
Returns a string description of the time.

Overrides:
toString in class Object

equals

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

Overrides:
equals in class Object

clone

public Object clone()
             throws CloneNotSupportedException
Clone implementation that returns an Object with data cloned from self.

Overrides:
clone in class Object
Throws:
CloneNotSupportedException

hashCode

public int hashCode()
Overrides:
hashCode in class Object

AR System Java API

? Copyright 2006, 2007 BMC Software, Inc.