public class SVNRevision
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
static class |
SVNRevision.DateSpec |
static class |
SVNRevision.Kind
Various ways of specifying revisions.
|
static class |
SVNRevision.Number |
Modifier and Type | Field and Description |
---|---|
static SVNRevision |
BASE |
static SVNRevision |
COMMITTED |
protected static SafeSimpleDateFormat |
dateFormat |
static SVNRevision |
HEAD |
static SVNRevision.Number |
INVALID_REVISION |
static SVNRevision |
PREVIOUS |
protected int |
revKind |
static SVNRevision |
START |
static int |
SVN_INVALID_REVNUM |
static SVNRevision |
WORKING |
Constructor and Description |
---|
SVNRevision(int kind) |
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object target) |
int |
getKind() |
static SVNRevision |
getRevision(java.lang.String revision)
get a revision from a string
revision can be :
- a date with the following format : MM/DD/YYYY HH:MM AM_PM
- a revision number
- HEAD, BASE, COMMITED or PREV
|
static SVNRevision |
getRevision(java.lang.String revision,
java.text.SimpleDateFormat aDateFormat)
get a revision from a string
revision can be :
- a date with the format according to
dateFormat
- a revision number
- HEAD, BASE, COMMITED or PREV |
int |
hashCode() |
java.lang.String |
toString() |
protected static final SafeSimpleDateFormat dateFormat
protected int revKind
public static final SVNRevision HEAD
public static final SVNRevision START
public static final SVNRevision COMMITTED
public static final SVNRevision PREVIOUS
public static final SVNRevision BASE
public static final SVNRevision WORKING
public static final int SVN_INVALID_REVNUM
public static final SVNRevision.Number INVALID_REVISION
public int getKind()
public java.lang.String toString()
toString
in class java.lang.Object
public boolean equals(java.lang.Object target)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public static SVNRevision getRevision(java.lang.String revision, java.text.SimpleDateFormat aDateFormat) throws java.text.ParseException
dateFormat
- a revision number
- HEAD, BASE, COMMITED or PREVrevision
- aDateFormat
- java.text.ParseException
- when the revision string cannot be parsedpublic static SVNRevision getRevision(java.lang.String revision) throws java.text.ParseException
revision
- java.text.ParseException
- when the revision string cannot be parsed