|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
An immutable logical time interval.
| 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. |
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. |
| Method Detail |
public boolean isZero()
true if this logical time interval has a
zero length, false otherwisepublic boolean isEpsilon()
true if this logical time interval has an
epsilon length, false otherwisepublic LogicalTimeInterval subtract(LogicalTimeInterval subtrahend)
LogicalTimeInterval representing the
result.
subtrahend - 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 java.lang.Comparableother - 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)
other - the LogicalTimeInterval to compare this to
true if the two intervals are equal, false
otherwisepublic int hashCode()
public java.lang.String toString()
public int encodedLength()
public void encode(byte[] buffer,
int offset)
buffer - 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 | |||||||||