public interface DatabaseInstant
extends java.io.Serializable
Assume a database associates a DatabaseInstant to an event E1. We call this I(E1). Also assume the same Database associates a DatabaseInstant to a second event E2. We call this I(E2). By definition
It is not meaningful to compare a DatabaseInstant from one database with a DatabaseInstant from another. The result of such a comparison is undefined. Because a database may construct, store and compare huge numbers of DatabaseInstants, this interface does not require an implementation to notice when a caller compares a DatabaseInstants from different databases.
Any implementation of this interface must implement value equality, thus implementing equals() and hashCode() methods.
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object other)
Return true if this DatabaseInstant equals
DatabaseInstant from the same database.
|
boolean |
lessThan(DatabaseInstant other)
Return true if this DatabaseInstant is before another
DatabaseInstant from the same database.
|
DatabaseInstant |
next()
Return the next higher DatabaseInstant.
|
DatabaseInstant |
prior()
Return the next lower DatabaseInstant.
|
java.lang.String |
toString()
Convert the database instant to a string.
|
boolean lessThan(DatabaseInstant other)
other
- a DatabaseInstant from the same database as
this.boolean equals(java.lang.Object other)
equals
in class java.lang.Object
other
- a DatabaseInstant from the same database as
this.DatabaseInstant next()
DatabaseInstant prior()
java.lang.String toString()
toString
in class java.lang.Object
Apache Derby V10.13 Internals - Copyright © 2004,2016 The Apache Software Foundation. All Rights Reserved.