public class NumberSchema extends Schema
| Modifier and Type | Class and Description |
|---|---|
static class |
NumberSchema.Builder
Builder class for
NumberSchema. |
schemaLocation| Constructor and Description |
|---|
NumberSchema() |
NumberSchema(NumberSchema.Builder builder)
Constructor.
|
| Modifier and Type | Method and Description |
|---|---|
static NumberSchema.Builder |
builder() |
protected boolean |
canEqual(Object other)
Since 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.
|
boolean |
equals(Object o) |
Number |
getExclusiveMaximumLimit() |
Number |
getExclusiveMinimumLimit() |
Number |
getMaximum() |
Number |
getMinimum() |
Number |
getMultipleOf() |
int |
hashCode() |
boolean |
isExclusiveMaximum() |
boolean |
isExclusiveMinimum() |
boolean |
isRequiresNumber() |
boolean |
requiresInteger() |
definesProperty, describeTo, failure, failure, getDefaultValue, getDescription, getId, getSchemaLocation, getTitle, hasDefaultValue, isNullable, isReadOnly, isWriteOnly, toString, validatepublic NumberSchema()
public NumberSchema(NumberSchema.Builder builder)
builder - the builder object containing validation criteriapublic static NumberSchema.Builder builder()
public Number getMaximum()
public Number getMinimum()
public Number getMultipleOf()
public boolean isExclusiveMaximum()
public boolean isExclusiveMinimum()
public boolean requiresInteger()
public boolean isRequiresNumber()
public Number getExclusiveMinimumLimit()
public Number getExclusiveMaximumLimit()
Copyright © 2018 Everit Kft.. All rights reserved.