public class ValueState extends Object implements Serializable
Value object suitable
for use as the key of a Map.| Modifier and Type | Field and Description |
|---|---|
static long |
serialVersionUID |
| Constructor and Description |
|---|
ValueState(Value value)
Construct an immutable
ValueState by copying the relevant
state information from a Value. |
ValueState(Value value,
int truncateSize)
Construct an immutable
ValueState by copying the relevant
state information from a Value. |
| Modifier and Type | Method and Description |
|---|---|
void |
copyTo(Value value)
Copies the content of this
ValueState to the supplied
Value. |
boolean |
equals(Object obj)
Implements
equals in such a way that Value and
ValueState can be used interchangeably as map keys. |
byte[] |
getEncodedBytes() |
int |
getEncodedSize() |
int |
hashCode()
The hash code for this
ValueState. |
public static final long serialVersionUID
public ValueState(Value value)
ValueState by copying the relevant
state information from a Value. The hashCode
and equals methods of Value and
ValueState are compatible so that either a
Value or a ValueState may be used as a map key.value - The Value from which the state is copied.public ValueState(Value value, int truncateSize)
ValueState by copying the relevant
state information from a Value. The hashCode
and equals methods of Value and
ValueState are compatible so that either a
Value or a ValueState may be used as a map key.
If the encoded size of the original value is larger than
truncateSize, the result is truncated the that size.value - The Value from which the state is copied.truncateSize - Size at which the the copied encoded byte array is truncated.public void copyTo(Value value)
ValueState to the supplied
Value.value - The Value to which content should be copied.public int hashCode()
ValueState. The hashCode is the same
as for the equivalent Value, that is the Value
from which this ValueState was constructed prior to any
subsequent modifications.public boolean equals(Object obj)
equals in such a way that Value and
ValueState can be used interchangeably as map keys.public byte[] getEncodedBytes()
Value.getEncodedBytes().public int getEncodedSize()
Value.getEncodedSize().Copyright © 2025 Open Identity Platform Community. All rights reserved.