Class BaseField

    • Constructor Detail

      • BaseField

        protected BaseField​(Double confidence,
                            Polygon polygon,
                            Integer pageId)
        JSON constructor.
      • BaseField

        protected BaseField()
        Default constructor.
    • Method Detail

      • isEmpty

        public abstract boolean isEmpty()
        Whether the field is empty or not.
        Returns:
        true if the field is empty, false otherwise.
      • getPolygon

        public Polygon getPolygon()
        Define the coordinates of the zone in the page where the value has been found.
        Specified by:
        getPolygon in interface PositionData
      • getConfidence

        public Double getConfidence()
        The confidence about the zone of the value extracted. A value from 0 to 1.
      • getPageId

        public Integer getPageId()
        The index of the page where the current field was found.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object