public interface Timestamp extends java.lang.Comparable<Timestamp>
Classes implementing this interface must also implement
hashCode()
and equals(Object)
.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
int |
hashCode() |
default boolean |
isNewerThan(Timestamp other)
Tests if this timestamp is newer than the specified timestamp.
|
default boolean |
isOlderThan(Timestamp other)
Tests if this timestamp is older than the specified timestamp.
|
int hashCode()
hashCode
in class java.lang.Object
boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
default boolean isNewerThan(Timestamp other)
other
- timestamp to compare againstdefault boolean isOlderThan(Timestamp other)
other
- timestamp to compare against