Class SplitRange


  • public class SplitRange
    extends Object
    A single document as identified when splitting a multi-document source file.
    • Field Detail

      • pageRange

        public List<Integer> pageRange
        0-based page indexes, where the first integer indicates the start page and the second integer indicates the end page.
      • documentType

        public String documentType
        The document type, as identified on given classification values.
    • Constructor Detail

      • SplitRange

        public SplitRange​(List<Integer> pageRange,
                          String documentType,
                          ExtractionResponse extractionResponse)
        Creates a new SplitRange instance.
        Parameters:
        pageRange - 0-based page indexes, where the first integer indicates the start page and the second integer indicates the end page.
        documentType - The document type, as identified on given classification values.
        extractionResponse - The extraction response associated with the split.
      • SplitRange

        public SplitRange()
    • Method Detail

      • getPageRangeDistinct

        public List<Integer> getPageRangeDistinct()
        Returns a list of distinct page ranges. Useful for extracting pages from a document.
      • getPageRange

        public List<Integer> getPageRange()
        0-based page indexes, where the first integer indicates the start page and the second integer indicates the end page.
      • getDocumentType

        public String getDocumentType()
        The document type, as identified on given classification values.
      • getExtractionResponse

        public ExtractionResponse getExtractionResponse()
        The extraction response associated with the split.
      • canEqual

        protected boolean canEqual​(Object other)
      • hashCode

        public int hashCode()
        Overrides:
        hashCode in class Object