tech.jhipster.lite.module.domain.javaproperties.SpringComments Maven / Gradle / Ivy
package tech.jhipster.lite.module.domain.javaproperties;
import java.util.Collection;
import java.util.List;
import tech.jhipster.lite.shared.error.domain.Assert;
public record SpringComments(Collection comments) {
public static final SpringComments EMPTY = new SpringComments(List.of());
public SpringComments {
Assert.field("comments", comments).notNull().noNullElement();
}
public Collection get() {
return comments();
}
}