Class IntegerSchema


public class IntegerSchema extends NumberSchema
This class represents a JsonSchema as an integer type
  • Field Details

    • divisibleBy

      private Integer divisibleBy
      This attribute defines what value the number instance must be divisible by with no remainder (the result of the division must be an integer.) The value of this attribute SHOULD NOT be 0.
  • Constructor Details

    • IntegerSchema

      public IntegerSchema()
  • Method Details

    • isIntegerSchema

      public boolean isIntegerSchema()
      Description copied from class: JsonSchema
      determine if this JsonSchema is an IntegerSchema.
      Overrides:
      isIntegerSchema in class JsonSchema
      Returns:
      true if this JsonSchema is an IntegerSchema, false otherwise
    • getType

      public com.fasterxml.jackson.databind.jsonFormatVisitors.JsonFormatTypes getType()
      Overrides:
      getType in class NumberSchema
    • asIntegerSchema

      public IntegerSchema asIntegerSchema()
      Description copied from class: JsonSchema
      Attempt to return this JsonSchema as an IntegerSchema
      Overrides:
      asIntegerSchema in class JsonSchema
      Returns:
      this as an IntegerSchema if possible, or null otherwise
    • getDivisibleBy

      public Integer getDivisibleBy()
    • setDivisibleBy

      public void setDivisibleBy(Integer divisibleBy)
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class NumberSchema
    • _equals

      protected boolean _equals(IntegerSchema that)