com.datastax.data.exploration.dto.dataChart.stackedBar.Crosstab Maven / Gradle / Ivy
The newest version!
package com.datastax.data.exploration.dto.dataChart.stackedBar;
import java.util.List;
/**
* @author songfu 2018/1/8
*/
public class Crosstab {
private String[] summary;
private String stack;
private List stackSubs;
private ModuleData content;
private GroupData total;
private List chiSquares;
public Crosstab() {
}
private Crosstab(Crosstab origin) {
this.summary = origin.summary;
this.stack = origin.stack;
this.stackSubs = origin.stackSubs;
this.content = origin.content;
this.total = origin.total;
this.chiSquares = origin.chiSquares;
}
public String[] getSummary() {
return summary;
}
public String getStack() {
return stack;
}
public List getStackSubs() {
return stackSubs;
}
public ModuleData getContent() {
return content;
}
public GroupData getTotal() {
return total;
}
public List getChiSquares() {
return chiSquares;
}
public static class Builder {
private static Crosstab target;
public Builder() {
target = new Crosstab();
}
public Builder summary(String[] summary) {
target.summary = summary;
return this;
}
public Builder stack(String stack) {
target.stack = stack;
return this;
}
public Builder stackSubs(List stackSubs) {
target.stackSubs = stackSubs;
return this;
}
public Builder content(ModuleData content) {
target.content = content;
return this;
}
public Builder total(GroupData total) {
target.total = total;
return this;
}
public Builder chiSquare (List chiSquares) {
target.chiSquares = chiSquares;
return this;
}
public Crosstab build() {
return new Crosstab(target);
}
}
public static class ModuleData{
private String group;
private List data;
public ModuleData(String group, List data) {
this.group = group;
this.data = data;
}
public String getGroup() {
return group;
}
public List getData() {
return data;
}
}
public static class GroupData{
private String groupSub;
private List data;
public GroupData(String groupSub, List data) {
this.groupSub = groupSub;
this.data = data;
}
public String getGroupSub() {
return groupSub;
}
public List getData() {
return data;
}
}
public static class Data{
private String count;
private List value;
public Data(String count, List value) {
this.count = count;
this.value = value;
}
public String getCount() {
return count;
}
public List getValue() {
return value;
}
}
public static class ChiSquare {
private String cal;
private String value;
private String df;
private String pvalue;
public ChiSquare(String cal, String value, String df, String pvalue) {
this.cal = cal;
this.value = value;
this.df = df;
this.pvalue = pvalue;
}
public String getCal() {
return cal;
}
public String getValue() {
return value;
}
public String getDf() {
return df;
}
public String getPvalue() {
return pvalue;
}
}
}