public final class TimestampValidityState extends java.lang.Object implements ValidityState
Constructor and Description |
---|
TimestampValidityState(long timestamp)
Creates a validity state with the specified timestamp.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equalsTo(ValidityState otherState)
Compares this validity state to other ValidityState.
|
static TimestampValidityState |
load(java.io.DataInput is)
Loads the validity state from the specified stream.
|
void |
save(java.io.DataOutput out)
Saves the validity state to the specified stream.
|
public TimestampValidityState(long timestamp)
timestamp
- the timestamp for the validity state.public boolean equalsTo(ValidityState otherState)
ValidityState
equalsTo
in interface ValidityState
otherState
- the state to compare with.public void save(java.io.DataOutput out) throws java.io.IOException
save
in interface ValidityState
out
- java.io.IOException
- if the stream write fails.load(DataInput)
public static TimestampValidityState load(java.io.DataInput is) throws java.io.IOException
is
- the stream to load the validity state from.java.io.IOException
- if the stream read fails.