package com.jasamedika.medifirst2000.paging; public class Condition { public Type type; public Comparison comparison; public Object value; public String field; public Condition() { } public Condition(Type type, Comparison comparison, Object value, String field) { this.type = type; this.comparison = comparison; this.value = value; this.field = field; } public static class Builder { private Type type; private Comparison comparison; private Object value; private String field; public Builder setType(Type type) { this.type = type; return this; } public Builder setComparison(Comparison comparison) { this.comparison = comparison; return this; } public Builder setValue(Object value) { this.value = value; return this; } public Builder setField(String field) { this.field = field; return this; } public Condition build() { return new Condition(type, comparison, value, field); } } }