public abstract class Snapshot extends java.lang.Object implements ISnapshot
Constructor and Description |
---|
Snapshot() |
Modifier and Type | Method and Description |
---|---|
boolean |
isEqualTo(ISnapshot other)
Indicates whether some other snapshot is "equal to" this one.
|
protected java.lang.Boolean |
predictEquality(Snapshot other)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getContents
public final boolean isEqualTo(ISnapshot other)
ISnapshot
If snapshots are equal they have equal contents (or had had equal contents before one or both of them expired). However, the converse is not necessarily true.
Note that snapshots which are equal but not identical may become unequal when one or both of them expire. However, unequal snapshots can never become equal.
Implementations of this method must be reflexive, symmetric and transitive on non-null references.
protected java.lang.Boolean predictEquality(Snapshot other)
equal
without actually obtaining their contents
.
Must return null
if cannot tell for sure. Any non-null
result must meet the contract of ISnapshot.isEqualTo(ISnapshot)
.other
- the other snapshot (not null
and not identical to the receiver)true
if the two snapshots are predicted to be equal,
false
if the two snapshots are predicted to be unequal,
and null
if there is no predictionCopyright (c) 2014, 2018 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0