Class ArraySchema


  • public class ArraySchema
    extends Schema
    Array schema validator.
    • Constructor Detail

      • ArraySchema

        public ArraySchema​(ArraySchema.Builder builder)
        Constructor.
        Parameters:
        builder - contains validation criteria.
    • Method Detail

      • getAllItemSchema

        public Schema getAllItemSchema()
      • getItemSchemas

        public List<Schema> getItemSchemas()
      • getMaxItems

        public Integer getMaxItems()
      • getMinItems

        public Integer getMinItems()
      • getSchemaOfAdditionalItems

        public Schema getSchemaOfAdditionalItems()
      • getContainedItemSchema

        public Schema getContainedItemSchema()
      • needsUniqueItems

        public boolean needsUniqueItems()
      • permitsAdditionalItems

        public boolean permitsAdditionalItems()
      • requiresArray

        public boolean requiresArray()
      • canEqual

        protected boolean canEqual​(Object other)
        Description copied from class: Schema
        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.

        http://www.artima.com/lejava/articles/equality.html

        Overrides:
        canEqual in class Schema
        Parameters:
        other - the subject of comparison
        Returns:
        true if this can be equal to other
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Schema