org.apache.subversion.javahl.types
Class Revision.DateSpec

java.lang.Object
  extended by org.apache.subversion.javahl.types.Revision
      extended by org.apache.subversion.javahl.types.Revision.DateSpec
All Implemented Interfaces:
Serializable
Enclosing class:
Revision

public static class Revision.DateSpec
extends Revision

class to specify a revision by a date

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class org.apache.subversion.javahl.types.Revision
Revision.DateSpec, Revision.Kind, Revision.Number
 
Field Summary
protected  Date revDate
          the date
 
Fields inherited from class org.apache.subversion.javahl.types.Revision
BASE, COMMITTED, HEAD, PREVIOUS, revKind, START, SVN_INVALID_REVNUM, UNSPECIFIED, WORKING
 
Constructor Summary
Revision.DateSpec(Date date)
          create a revision by date object
 
Method Summary
 boolean equals(Object target)
          compare to revision objects
 Date getDate()
          Returns the date of the revision
 int hashCode()
           
 String toString()
          return the textual representation of the revision
 
Methods inherited from class org.apache.subversion.javahl.types.Revision
getInstance, getInstance, getKind
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

revDate

protected Date revDate
the date

Constructor Detail

Revision.DateSpec

public Revision.DateSpec(Date date)
create a revision by date object

Parameters:
date -
Method Detail

getDate

public Date getDate()
Returns the date of the revision

Returns:
the date

toString

public String toString()
return the textual representation of the revision

Overrides:
toString in class Revision
Returns:
english text

equals

public boolean equals(Object target)
compare to revision objects

Overrides:
equals in class Revision
Parameters:
target -
Returns:
if both object have equal content

hashCode

public int hashCode()
Overrides:
hashCode in class Revision