Package org.everit.json.schema
Class NumberSchema
java.lang.Object
org.everit.json.schema.Schema
org.everit.json.schema.NumberSchema
Number schema validator.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields inherited from class org.everit.json.schema.Schema
schemaLocation -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberSchema.Builderbuilder()protected booleanSince we add state in subclasses, but want those subclasses to be non final, this allows us to have equals methods that satisfy the equals contract.booleaninthashCode()booleanbooleanbooleanbooleanMethods inherited from class org.everit.json.schema.Schema
definesProperty, describeTo, failure, failure, getDefaultValue, getDescription, getId, getLocation, getSchemaLocation, getTitle, getUnprocessedProperties, hasDefaultValue, isNullable, isReadOnly, isWriteOnly, toString, validate
-
Constructor Details
-
NumberSchema
public NumberSchema() -
NumberSchema
Constructor.- Parameters:
builder- the builder object containing validation criteria
-
-
Method Details
-
builder
-
getMaximum
-
getMinimum
-
getMultipleOf
-
isExclusiveMaximum
public boolean isExclusiveMaximum() -
isExclusiveMinimum
public boolean isExclusiveMinimum() -
requiresInteger
public boolean requiresInteger() -
isRequiresNumber
public boolean isRequiresNumber() -
getExclusiveMinimumLimit
-
getExclusiveMaximumLimit
-
equals
-
hashCode
public int hashCode() -
canEqual
Description copied from class:SchemaSince we add state in subclasses, but want those subclasses to be non final, this allows us to have equals methods that satisfy the equals contract.http://www.artima.com/lejava/articles/equality.html
-