T - the decoded type of the elementsPT - the persisted type from which we are decoding and to which we are
encoding each elementspublic class PersistedValue<T,PT> extends Object implements PersistedObject<T,PT>
PersistedValue class is used to track a persisted value by
keeping reference to both its encoded and decoded value.| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object obj) |
T |
getDecodedValue()
Gets the decoded value.
|
PT |
getEncodedValue()
Gets the encoded value.
|
int |
hashCode() |
PersistedValue<T,PT> |
setDecodedValue(T val)
Sets the decoded value.
|
PersistedValue<T,PT> |
setEncodedValue(PT val)
Sets the encoded value.
|
String |
toString() |
public T getDecodedValue()
IllegalArgumentException - if unable to decode the value properlypublic PT getEncodedValue()
IllegalArgumentException - if unable to encode the value properlyClassCastException - if the value cannot be encoded to the expected typepublic PersistedValue<T,PT> setDecodedValue(T val)
val - the new decoded valuepublic PersistedValue<T,PT> setEncodedValue(PT val)
val - the new encoded valuepublic int hashCode()
hashCode in class ObjectObject.hashCode()public boolean equals(Object obj)
equals in class ObjectObject.equals(java.lang.Object)public String toString()
toString in class ObjectObject.toString()Copyright (C) 2015-2015 The Helenus Driver Project Authors.