com.tvd12.ezydata.database.query.EzyQueryConditionGroup Maven / Gradle / Ivy
package com.tvd12.ezydata.database.query;
import com.tvd12.ezyfox.builder.EzyBuilder;
import lombok.Getter;
import java.util.ArrayList;
import java.util.List;
@Getter
public class EzyQueryConditionGroup {
protected final List conditions;
public EzyQueryConditionGroup(List conditions) {
this.conditions = conditions;
}
public static Builder builder() {
return new Builder();
}
public int size() {
return conditions.size();
}
public static class Builder implements EzyBuilder {
protected final List conditions = new ArrayList<>();
public Builder addCondition(EzyQueryCondition condition) {
this.conditions.add(condition);
return this;
}
@Override
public EzyQueryConditionGroup build() {
return new EzyQueryConditionGroup(conditions);
}
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy