Package org.tigris.subversion.javahl
Class LogDate
- java.lang.Object
-
- org.tigris.subversion.javahl.LogDate
-
- All Implemented Interfaces:
java.io.Serializable
public class LogDate extends java.lang.Object implements java.io.SerializableHolds date for a log message. This class maintains the time to the microsecond and is not lossy.- Since:
- 1.5
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.util.CalendarcachedDateprivate java.lang.StringcachedStringprivate static java.text.DateFormatformatterprivate static longserialVersionUIDprivate longtimeMicrosprivate static java.util.TimeZoneUTC
-
Constructor Summary
Constructors Constructor Description LogDate(java.lang.String datestr)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.CalendargetCalender()Returns the time of the commit as Calendarjava.util.DategetDate()Returns the date of the commitlonggetTimeMicros()Returns the time of the commit in microsecondslonggetTimeMillis()Returns the time of the commit in millisecondsinthashCode()java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
formatter
private static final java.text.DateFormat formatter
-
UTC
private static final java.util.TimeZone UTC
-
timeMicros
private final long timeMicros
-
cachedString
private final java.lang.String cachedString
-
cachedDate
private final java.util.Calendar cachedDate
-
-
Method Detail
-
getTimeMicros
public long getTimeMicros()
Returns the time of the commit in microseconds- Returns:
- the time of the commit measured in the number of microseconds since 00:00:00 January 1, 1970 UTC
-
getTimeMillis
public long getTimeMillis()
Returns the time of the commit in milliseconds- Returns:
- the time of the commit measured in the number of milliseconds since 00:00:00 January 1, 1970 UTC
-
getCalender
public java.util.Calendar getCalender()
Returns the time of the commit as Calendar- Returns:
- the time of the commit as java.util.Calendar
-
getDate
public java.util.Date getDate()
Returns the date of the commit- Returns:
- the time of the commit as java.util.Date
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
-