fun.langel.cql.node.GroupBy Maven / Gradle / Ivy
The newest version!
/*
* Copyright (c) 2022. Lorem ipsum dolor sit amet, consectetur adipiscing elit.
* Morbi non lorem porttitor neque feugiat blandit. Ut vitae ipsum eget quam lacinia accumsan.
* Etiam sed turpis ac ipsum condimentum fringilla. Maecenas magna.
* Proin dapibus sapien vel ante. Aliquam erat volutpat. Pellentesque sagittis ligula eget metus.
* Vestibulum commodo. Ut rhoncus gravida arcu.
*/
package fun.langel.cql.node;
import java.util.Arrays;
import java.util.LinkedList;
import java.util.List;
/**
* @author [email protected](GuHan)
* @date 2022/12/15 20:15
**/
public class GroupBy implements Node {
private final List columns = new LinkedList<>();
private GroupBy(Column... cols) {
this.columns.addAll(Arrays.asList(cols));
}
public static GroupBy of(Column col) {
return new GroupBy(col);
}
public static GroupBy ofEmpty() {
return new GroupBy();
}
public List columns() {
return this.columns;
}
public void add(Column col) {
this.columns.add(col);
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy