com.dimajix.shaded.everit.schema.TrueSchema Maven / Gradle / Ivy
package com.dimajix.shaded.everit.schema;
import com.dimajix.shaded.everit.schema.internal.JSONPrinter;
/**
* @author erosb
*/
public class TrueSchema extends EmptySchema {
public static class Builder extends EmptySchema.Builder {
@Override public TrueSchema build() {
return new TrueSchema(this);
}
}
public static Builder builder() {
return new Builder();
}
public TrueSchema(Builder builder) {
super(builder);
}
@Override
public void describeTo(JSONPrinter writer) {
writer.value(true);
}
@Override
public String toString() {
return "true";
}
@Override public boolean equals(Object o) {
return o instanceof TrueSchema && super.equals(o);
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy