public class Identity
extends java.lang.Object
Constructor and Description |
---|
Identity()
Default constructor.
|
Identity(Key key,
java.lang.String checkpoint)
Creates the new instance.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getCheckpoint()
Returns the check point value.
|
Key |
getKey()
Returns the key.
|
int |
hashCode() |
boolean |
isRevision()
Checks if there is checkpoint information.
|
void |
setCheckpoint(java.lang.String checkpoint)
Sets the check point value.
|
void |
setKey(Key key)
Sets the key.
|
public Identity()
public Identity(Key key, java.lang.String checkpoint)
key
- the key to identify.checkpoint
- the check point name.public Key getKey()
public void setKey(Key key)
key
- the key to setpublic java.lang.String getCheckpoint()
public void setCheckpoint(java.lang.String checkpoint)
checkpoint
- the checkpoint to setpublic boolean isRevision()
true
if check is available.public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object