public class CurrentRevision
extends java.lang.Object
implements java.io.Serializable, java.lang.Cloneable
Represents information about a current revision.
Modifier and Type | Field and Description |
---|---|
private java.lang.String |
changeIdentifier
The change identifier for the current revision.
|
private java.lang.String |
revision
The revision ID of the current version of an artifact.
|
Constructor and Description |
---|
CurrentRevision() |
Modifier and Type | Method and Description |
---|---|
CurrentRevision |
clone() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getChangeIdentifier()
The change identifier for the current revision.
|
java.lang.String |
getRevision()
The revision ID of the current version of an artifact.
|
int |
hashCode() |
void |
setChangeIdentifier(java.lang.String changeIdentifier)
The change identifier for the current revision.
|
void |
setRevision(java.lang.String revision)
The revision ID of the current version of an artifact.
|
java.lang.String |
toString()
Returns a string representation of this object; useful for testing and
debugging.
|
CurrentRevision |
withChangeIdentifier(java.lang.String changeIdentifier)
The change identifier for the current revision.
|
CurrentRevision |
withRevision(java.lang.String revision)
The revision ID of the current version of an artifact.
|
private java.lang.String revision
The revision ID of the current version of an artifact.
private java.lang.String changeIdentifier
The change identifier for the current revision.
public void setRevision(java.lang.String revision)
The revision ID of the current version of an artifact.
revision
- The revision ID of the current version of an artifact.public java.lang.String getRevision()
The revision ID of the current version of an artifact.
public CurrentRevision withRevision(java.lang.String revision)
The revision ID of the current version of an artifact.
revision
- The revision ID of the current version of an artifact.public void setChangeIdentifier(java.lang.String changeIdentifier)
The change identifier for the current revision.
changeIdentifier
- The change identifier for the current revision.public java.lang.String getChangeIdentifier()
The change identifier for the current revision.
public CurrentRevision withChangeIdentifier(java.lang.String changeIdentifier)
The change identifier for the current revision.
changeIdentifier
- The change identifier for the current revision.public java.lang.String toString()
toString
in class java.lang.Object
Object.toString()
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public CurrentRevision clone()
clone
in class java.lang.Object