|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object net.sourceforge.jsdp.util.ZoneAdjustment
public class ZoneAdjustment
Represents an adjustment time and his offset from the base time, for a repeated session scheduling.
TimeZone
,
Serialized FormField Summary | |
---|---|
protected long |
offset
The adjustment offset |
protected long |
time
The NTP representation of adjustment time |
Constructor Summary | |
---|---|
protected |
ZoneAdjustment()
Creates a new ZoneAdjustment |
|
ZoneAdjustment(Date time,
long offset)
Creates a new ZoneAdjustment. |
|
ZoneAdjustment(long time,
long offset)
Creates a new ZoneAdjustment. |
Method Summary | |
---|---|
Object |
clone()
Returns a clone of this zone adjustment. |
long |
getOffset()
Returns the adjustment offset. |
long |
getTime()
Returns the adjustment time. |
void |
setOffset(long offset)
Sets the adjustment offset. |
void |
setTime(long time)
Sets the adjustment time. |
String |
toString()
Returns a string representation of the object. |
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected long offset
protected long time
Constructor Detail |
---|
protected ZoneAdjustment()
public ZoneAdjustment(Date time, long offset) throws SDPException
time
- the adjustment timeoffset
- the adjustment offset
SDPException
- if the NTP representation of the adjustment time is
negativepublic ZoneAdjustment(long time, long offset) throws SDPException
time
- the adjustment timeoffset
- the adjustment offset
SDPException
- if the adjustment time is negativeMethod Detail |
---|
public Object clone()
clone
in class Object
public long getOffset()
public long getTime()
public void setOffset(long offset)
offset
- the adjustment offsetpublic void setTime(long time) throws SDPException
time
- the adjustment time
SDPException
- if the adjustment time is negativepublic String toString()
toString
in class Object
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |