Class Action

java.lang.Object
com.mooltiverse.oss.nyx.entities.git.Action
All Implemented Interfaces:
Serializable, Cloneable, Comparable<Action>

public class Action extends Object implements Comparable<Action>, Cloneable, Serializable
This object is a Git action value holder independent from the underlying Git implementation.
See Also:
  • Constructor Details

    • Action

      public Action(Identity identity, TimeStamp timeStamp)
      Constructor.
      Parameters:
      identity - the identity. Cannot be null
      timeStamp - the time stamp. May be null
  • Method Details

    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • compareTo

      public int compareTo(Action a)
      Specified by:
      compareTo in interface Comparable<Action>
    • getIdentity

      public Identity getIdentity()
      Returns the identity.
      Returns:
      the identity. Never null.
    • getTimeStamp

      public TimeStamp getTimeStamp()
      Returns the time stamp.
      Returns:
      the time stamp. May be null.
    • toString

      public String toString()
      Overrides:
      toString in class Object