Class PushResult

java.lang.Object
com.linecorp.centraldogma.common.PushResult

public class PushResult extends Object
The result of a push operation.
  • Constructor Details

    • PushResult

      public PushResult(Revision revision, long when)
      Creates a new instance.
      Parameters:
      revision - the Revision of the pushed commit
      when - the time and date of the pushed commit, represented as the number of milliseconds since the epoch (midnight, January 1, 1970 UTC)
  • Method Details

    • revision

      public Revision revision()
      Returns the Revision of the pushed commit.
    • when

      public long when()
      Returns the time and date of the pushed commit.
      Returns:
      the number of milliseconds since the epoch (midnight, January 1, 1970 UTC)
    • whenAsText

      public String whenAsText()
      Returns the time and date of the pushed commit in ISO 8601 combined date and time representation.
    • hashCode

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

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object