Class Revision
java.lang.Object
org.apache.subversion.javahl.types.Revision
- All Implemented Interfaces:
Serializable
- Direct Known Subclasses:
Revision.DateSpec
,Revision.Number
public class Revision extends Object implements Serializable
Class to specify a revision in a svn command.
- See Also:
- Serialized Form
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Revision.DateSpec
class to specify a revision by a datestatic class
Revision.Kind
Various ways of specifying revisions.static class
Revision.Number
class to specify a Revision by number -
Field Summary
Fields Modifier and Type Field Description static Revision
BASE
base revision of working copystatic Revision
COMMITTED
last committed revision, needs working copystatic Revision
HEAD
last committed revisionstatic Revision
PREVIOUS
previous committed revision, needs working copyprotected Revision.Kind
revKind
kind of revision specifiedstatic Revision
START
first existing revisionstatic int
SVN_INVALID_REVNUM
Marker revision number for no real revisionstatic Revision
UNSPECIFIED
unspecified revisionstatic Revision
WORKING
working version in working copy -
Constructor Summary
Constructors Constructor Description Revision(Revision.Kind kind)
Internally create a new revision. -
Method Summary
Modifier and Type Method Description boolean
equals(Object target)
compare to revision objectsstatic Revision
getInstance(long revisionNumber)
Creates a Revision.Number objectstatic Revision
getInstance(Date revisionDate)
Creates a Revision.DateSpec objetRevision.Kind
getKind()
Returns the kind of the Revsionint
hashCode()
String
toString()
return the textual representation of the revision
-
Field Details
-
revKind
kind of revision specified -
HEAD
last committed revision -
START
first existing revision -
UNSPECIFIED
unspecified revision -
COMMITTED
last committed revision, needs working copy -
PREVIOUS
previous committed revision, needs working copy -
BASE
base revision of working copy -
WORKING
working version in working copy -
SVN_INVALID_REVNUM
Marker revision number for no real revision- See Also:
- Constant Field Values
-
-
Constructor Details
-
Revision
Internally create a new revision. Public for backward compat reasons. Callers should use getInstance() instead.- Parameters:
kind
- kind of revision
-
-
Method Details
-
getKind
Returns the kind of the Revsion- Returns:
- kind
-
toString
return the textual representation of the revision -
hashCode
public int hashCode() -
equals
compare to revision objects -
getInstance
Creates a Revision.Number object- Parameters:
revisionNumber
- the revision number of the new object- Returns:
- the new object
- Throws:
IllegalArgumentException
- If the specified revision number is invalid.
-
getInstance
Creates a Revision.DateSpec objet- Parameters:
revisionDate
- the date of the new object- Returns:
- the new object
-