cool.scx.data.query.GroupByBody Maven / Gradle / Ivy
package cool.scx.data.query;
import static cool.scx.data.query.GroupByOption.Info;
import static cool.scx.util.StringUtils.isBlank;
/**
* GroupByBody class.
*
* @author scx567888
* @version 0.0.1
*/
public record GroupByBody(String name, Info info) {
public GroupByBody(String name, Info info) {
if (isBlank(name)) {
throw new IllegalArgumentException("GroupBy 参数错误 : 名称 不能为空 !!!");
}
this.name = name.trim();
this.info = info;
}
public GroupByBody(String name, GroupByOption... options) {
this(name, new Info(options));
}
}