All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.enofex.naikan.model.Commit Maven / Gradle / Ivy

Go to download

The Naikan Model Module for Naikan the software inventory management tool for dev teams driven by our CI/CD pipeline.

The newest version!
package com.enofex.naikan.model;

import java.time.LocalDateTime;

public record Commit(String commitId, LocalDateTime timestamp, String shortMessage,
                     CommitAuthor author,
                     CommitChanges changes) {

  public static Builder builder() {
    return new Builder();
  }

  public static final class Builder {

    private String commitId;
    private LocalDateTime timestamp;
    private String shortMessage;
    private CommitAuthor author;
    private CommitChanges changes;

    private Builder() {
    }

    public Builder commitId(String commitId) {
      this.commitId = commitId;
      return this;
    }

    public Builder timestamp(LocalDateTime timestamp) {
      this.timestamp = timestamp;
      return this;
    }

    public Builder shortMessage(String shortMessage) {
      this.shortMessage = shortMessage;
      return this;
    }

    public Builder author(CommitAuthor author) {
      this.author = author;
      return this;
    }

    public Builder changes(CommitChanges changes) {
      this.changes = changes;
      return this;
    }

    public Commit build() {
      return new Commit(this.commitId, this.timestamp, this.shortMessage, this.author,
          this.changes);
    }
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy