public final class Revision extends Object implements Comparable<Revision>, Serializable
Revision defines the revision of a repository or a resource in that repository.| Modifier and Type | Field and Description |
|---|---|
static Revision |
EMPTY
Represents the
Revision of an empty repository. |
static Revision |
HEAD
Represents the newest
Revision in the repository. |
static Revision |
INITIAL
Represents the first
Revision in the repository. |
| Modifier and Type | Method and Description |
|---|---|
int |
compareTo(Revision other) |
static Revision |
create(int revision)
Create a new
Revision instance for the given value. |
boolean |
equals(Object o) |
int |
hashCode() |
String |
toString() |
public static Revision create(int revision)
Revision instance for the given value.revision - value of the Revision must be greater or equal than 1Revision instance with the given valueIllegalArgumentException - if revision is smaller than 1public int compareTo(Revision other)
compareTo in interface Comparable<Revision>Copyright © 2013–2017 shadowhunt. All rights reserved.