|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.npsnet.xrti.utilities.LongValuedLogicalTimeInterval
An immutable long-valued logical time interval.
| Constructor Summary | |
LongValuedLogicalTimeInterval(long pValue)
Creates a new XRTILogicalTimeInterval. |
|
| Method Summary | |
int |
compareTo(java.lang.Object other)
Compares this logical time interval to another. |
void |
encode(byte[] buffer,
int offset)
Encodes this logical time interval, placing the result into the specified buffer. |
int |
encodedLength()
Returns the encoded length of this logical time interval. |
boolean |
equals(java.lang.Object other)
Checks this logical time interval for equality with another. |
long |
getValue()
Returns the value of this time interval. |
int |
hashCode()
Computes and returns a hash code corresponding to this logical time interval. |
boolean |
isEpsilon()
Checks whether this logical time interval has an epsilon length. |
boolean |
isZero()
Checks whether this logical time interval has a zero length. |
LogicalTimeInterval |
subtract(LogicalTimeInterval subtrahend)
Subtracts the specified logical time interval from this one, returning a new LogicalTimeInterval representing the
result. |
java.lang.String |
toString()
Returns a string representation of this logical time interval. |
| Methods inherited from class java.lang.Object |
clone, finalize, getClass, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public LongValuedLogicalTimeInterval(long pValue)
XRTILogicalTimeInterval.
pValue - the value of the logical time interval| Method Detail |
public long getValue()
public boolean isZero()
isZero in interface LogicalTimeIntervaltrue if this logical time interval has a
zero length, false otherwisepublic boolean isEpsilon()
isEpsilon in interface LogicalTimeIntervaltrue if this logical time interval has an
epsilon length, false otherwisepublic LogicalTimeInterval subtract(LogicalTimeInterval subtrahend)
LogicalTimeInterval representing the
result.
subtract in interface LogicalTimeIntervalsubtrahend - the logical time interval to subtract from this one
LogicalTimeInterval representing the
result of the operationpublic int compareTo(java.lang.Object other)
compareTo in interface LogicalTimeIntervalother - the LogicalTimeInterval to compare this to
+1 if this logical time interval is longer than
the other, -1 if it is shorter, or 0 if the
two intervals are the same lengthpublic boolean equals(java.lang.Object other)
equals in interface LogicalTimeIntervalother - the LogicalTimeInterval to compare this to
true if the two intervals are equal, false
otherwisepublic int hashCode()
hashCode in interface LogicalTimeIntervalpublic java.lang.String toString()
toString in interface LogicalTimeIntervalpublic int encodedLength()
encodedLength in interface LogicalTimeInterval
public void encode(byte[] buffer,
int offset)
encode in interface LogicalTimeIntervalbuffer - the buffer in which to place the encoded intervaloffset - the offset within the buffer at which to store
the encoded interval
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||