Class CommitMetadata

java.lang.Object
org.javers.core.commit.CommitMetadata
All Implemented Interfaces:
Serializable

public class CommitMetadata extends Object implements Serializable
See Also:
  • Constructor Details

  • Method Details

    • nullObject

      public static CommitMetadata nullObject()
    • getAuthor

      public String getAuthor()
    • getProperties

      public Map<String,String> getProperties()
    • getCommitDate

      public LocalDateTime getCommitDate()
      Created date as local date.

      CommitDate is persisted as LocalDateTime (without information about time zone and daylight saving time).

      It may affects your query results. For example, once a year when DST ends, one hour is repeated (clock goes back from 3 am to 2 am). Looking just on the commitDate we can't distinct in which iteration of the hour, given commit was made.
    • getCommitDateInstant

      public Instant getCommitDateInstant()
      Created date as UTC timestamp
    • getId

      public CommitId getId()
    • isBeforeOrEqual

      public boolean isBeforeOrEqual(CommitMetadata that)
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • equals

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

      public int hashCode()
      Overrides:
      hashCode in class Object