Class TimeStamp
java.lang.Object
com.mooltiverse.oss.nyx.entities.git.TimeStamp
- All Implemented Interfaces:
Serializable,Cloneable,Comparable<TimeStamp>
This object is a Git timestamp value holder independent from the underlying Git implementation.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
TimeStamp
Constructor.- Parameters:
timeStamp- the time stamp. Cannot benulloffset- the time zone offset in minutes relative to UTC. May benull
-
-
Method Details
-
hashCode
public int hashCode() -
equals
-
compareTo
- Specified by:
compareToin interfaceComparable<TimeStamp>
-
getTimeStamp
Returns the time stamp.- Returns:
- the time stamp. Never
null.
-
getOffset
Returns the time zone offset in minutes relative to UTC.- Returns:
- the time zone offset in minutes relative to UTC. May be
null.
-
toString
-