T
- the type of the values that make up the snapshot
public class Snapshot<T>
extends java.lang.Object
implements java.io.Serializable
Ref
: Contains the set of Ref
objects representing the resources that existed at a given timeDigest
: Contains the set of Digest
objects for resources that existed at a given timeCanonicalResource
: Contains canonical (in-memory, non-serialized) values of resources that existed at a given timePortableResource
: Contains portable (serialized) values of resources that existed at a given time.SnapshotDelta
, Serialized FormConstructor and Description |
---|
Snapshot(RefValueDomain valueDomain, java.util.Map<Ref,T> values) |
Snapshot(RefValueDomain valueDomain, Snapshot<T> other) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
T |
getValue(Ref ref)
Returns the value associated with the given ref
|
RefValueDomain |
getValueDomain()
Returns the value domain
|
java.util.Map<Ref,T> |
getValues()
Returns the actual snapshot of values in the given value domain
|
int |
hashCode() |
public Snapshot(RefValueDomain valueDomain, java.util.Map<Ref,T> values)
public Snapshot(RefValueDomain valueDomain, Snapshot<T> other)
public RefValueDomain getValueDomain()
public java.util.Map<Ref,T> getValues()
public T getValue(Ref ref)
ref
- the referencepublic boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object