public class Time extends Object implements Cloneable, Serializable
Time class represents the time elapsed since midnight.| Constructor and Description |
|---|
Time()
constructor
|
Time(long l) |
Time(String str) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public Time()
public Time(long l)
public Time(String str)
public void setValue(long l)
long integer format).public void setValue(Time tm)
public long getValue()
public String toString()
public boolean equals(Object obj)
public Object clone() throws CloneNotSupportedException
clone in class ObjectCloneNotSupportedException? Copyright 2013 BMC Software, Inc.