public interface ISnapshot
Implementations of this interface must be thread-safe.
Snapshot
.Modifier and Type | Method and Description |
---|---|
java.lang.String |
getContents()
A snapshot returns the same contents until it expires.
|
boolean |
isEqualTo(ISnapshot other)
Indicates whether some other snapshot is "equal to" this one.
|
java.lang.String getContents()
null
.
Protractedly holding on the returned contents is not recommended, as it may potentially consume significant amount of space.
null
if
the snapshot has expiredboolean isEqualTo(ISnapshot other)
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.
other
- a snapshot to compare or null
true
if the snapshots are equal,
and false
otherwiseCopyright (c) 2014, 2019 1C-Soft LLC and others. Made available under the Eclipse Public License 2.0