com.enofex.naikan.model.Commits Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of naikan-model Show documentation
Show all versions of naikan-model Show documentation
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