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

com.enofex.naikan.model.Commits 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.util.Comparator;
import java.util.List;

public final class Commits extends AbstractContainer {

  private static final Commits NO_COMMITS = new Commits(List.of());

  public Commits(List commits) {
    super(commits != null
        ? commits.stream().sorted(Comparator.comparing(Commit::timestamp)).toList()
        : List.of());
  }

  public static Commits empty() {
    return NO_COMMITS;
  }

  public static Commits of(Commit... commits) {
    return new Commits(List.of(commits));
  }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy