|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object sale.Step
public class Step
This class is an implementation of the Time
interface.
A Long value is used to represent the time.
Constructor Summary | |
---|---|
Step()
Creates a new step with default starting time 0. |
|
Step(Long lInitTime)
Creates a new step with the given long value as the starting time. |
Method Summary | |
---|---|
Object |
getDefaultInterval()
Get the default time interval. |
Object |
getTime()
Get the current time. |
Comparable<String> |
getTimeStamp(long lStampNumber)
Create and return a time stamp. |
void |
goAhead(Object oInterval)
Increase the time by the given interval. |
void |
setTime(Object oTime)
Set the given Long as the new time value. |
String |
toString()
Return the current time. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public Step()
public Step(Long lInitTime)
lInitTime
- a Long: the initial time.Method Detail |
---|
public void setTime(Object oTime) throws IllegalArgumentException
setTime
in interface Time
oTime
- the new time value.
IllegalArgumentException
- if the given object is not convertible to a Longpublic Object getTime()
getTime
in interface Time
public void goAhead(Object oInterval) throws IllegalArgumentException
goAhead
in interface Time
oInterval
- the interval to increase time by
IllegalArgumentException
- if the given object is not convertible to a Longpublic Object getDefaultInterval()
getDefaultInterval
in interface Time
public Comparable<String> getTimeStamp(long lStampNumber)
getTimeStamp
in interface Time
lStampNumber
- the number of the stamp
public String toString()
toString
in class Object
|
SalesPoint v3.3 API | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |