
org.everit.json.schema.TrueSchema Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of org.everit.json.schema Show documentation
Show all versions of org.everit.json.schema Show documentation
This is a fork of the implementation of the JSON Schema Core Draft v4 specification built with the org.json API which also supports internationalization
The newest version!
package org.everit.json.schema;
import org.everit.json.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 - 2025 Weber Informatics LLC | Privacy Policy