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 |
public static Revision create(int revision)
Revision instance for the given valuerevision - 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–2014 shadowhunt. All rights reserved.