Package io.swagger.models.properties
Class AbstractNumericProperty
- java.lang.Object
-
- io.swagger.models.properties.AbstractProperty
-
- io.swagger.models.properties.AbstractNumericProperty
-
- Direct Known Subclasses:
BaseIntegerProperty,DecimalProperty
public abstract class AbstractNumericProperty extends AbstractProperty implements Property
-
-
Field Summary
Fields Modifier and Type Field Description protected BooleanexclusiveMaximumprotected BooleanexclusiveMinimumprotected BigDecimalmaximumprotected BigDecimalminimumprotected BigDecimalmultipleOf-
Fields inherited from class io.swagger.models.properties.AbstractProperty
access, allowEmptyValue, booleanValue, description, example, format, name, position, readOnly, required, title, type, vendorExtensions, xml
-
-
Constructor Summary
Constructors Constructor Description AbstractNumericProperty()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)AbstractNumericPropertyexclusiveMaximum(Boolean exclusiveMaximum)AbstractNumericPropertyexclusiveMinimum(Boolean exclusiveMinimum)BooleangetExclusiveMaximum()BooleangetExclusiveMinimum()BigDecimalgetMaximum()BigDecimalgetMinimum()BigDecimalgetMultipleOf()inthashCode()AbstractNumericPropertymaximum(BigDecimal maximum)AbstractNumericPropertyminimum(BigDecimal minimum)AbstractNumericPropertymultipleOf(BigDecimal multipleOf)voidsetExclusiveMaximum(Boolean exclusiveMaximum)voidsetExclusiveMinimum(Boolean exclusiveMinimum)voidsetMaximum(BigDecimal maximum)voidsetMinimum(BigDecimal minimum)voidsetMultipleOf(BigDecimal multipleOf)-
Methods inherited from class io.swagger.models.properties.AbstractProperty
allowEmptyValue, description, getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, readOnly, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setExample, setFormat, setName, setPosition, setReadOnly, setRequired, setTitle, setType, setVendorExtension, setVendorExtensionMap, setVendorExtensions, setXml, title
-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface io.swagger.models.properties.Property
description, getAccess, getAllowEmptyValue, getBooleanValue, getDescription, getExample, getFormat, getName, getPosition, getReadOnly, getRequired, getTitle, getType, getVendorExtensions, getXml, rename, setAccess, setAllowEmptyValue, setBooleanValue, setDefault, setDescription, setExample, setExample, setName, setPosition, setReadOnly, setRequired, setTitle, setXml, title
-
-
-
-
Field Detail
-
minimum
protected BigDecimal minimum
-
maximum
protected BigDecimal maximum
-
multipleOf
protected BigDecimal multipleOf
-
exclusiveMinimum
protected Boolean exclusiveMinimum
-
exclusiveMaximum
protected Boolean exclusiveMaximum
-
-
Method Detail
-
minimum
public AbstractNumericProperty minimum(BigDecimal minimum)
-
maximum
public AbstractNumericProperty maximum(BigDecimal maximum)
-
exclusiveMinimum
public AbstractNumericProperty exclusiveMinimum(Boolean exclusiveMinimum)
-
exclusiveMaximum
public AbstractNumericProperty exclusiveMaximum(Boolean exclusiveMaximum)
-
multipleOf
public AbstractNumericProperty multipleOf(BigDecimal multipleOf)
-
getMinimum
public BigDecimal getMinimum()
-
setMinimum
public void setMinimum(BigDecimal minimum)
-
getMaximum
public BigDecimal getMaximum()
-
setMaximum
public void setMaximum(BigDecimal maximum)
-
getExclusiveMinimum
public Boolean getExclusiveMinimum()
-
setExclusiveMinimum
public void setExclusiveMinimum(Boolean exclusiveMinimum)
-
getExclusiveMaximum
public Boolean getExclusiveMaximum()
-
setExclusiveMaximum
public void setExclusiveMaximum(Boolean exclusiveMaximum)
-
getMultipleOf
public BigDecimal getMultipleOf()
-
setMultipleOf
public void setMultipleOf(BigDecimal multipleOf)
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAbstractProperty
-
hashCode
public int hashCode()
- Overrides:
hashCodein classAbstractProperty
-
-