Class MultiPageReference

java.lang.Object
io.goobi.viewer.api.rest.model.ner.MultiPageReference
All Implemented Interfaces:
TagGroup, Comparable<TagGroup>

public class MultiPageReference extends Object implements TagGroup

MultiPageReference class.

  • Constructor Details

    • MultiPageReference

      public MultiPageReference()

      Constructor for MultiPageReference.

    • MultiPageReference

      public MultiPageReference(int order)

      Constructor for MultiPageReference.

      Parameters:
      order - a int.
    • MultiPageReference

      public MultiPageReference(Integer first, Integer last)

      Constructor for MultiPageReference.

      Parameters:
      first - a Integer object.
      last - a Integer object.
  • Method Details

    • getFirstPage

      public Integer getFirstPage()

      Getter for the field firstPage.

      Returns:
      a Integer object.
    • getLastPage

      public Integer getLastPage()

      Getter for the field lastPage.

      Returns:
      a Integer object.
    • getTags

      public List<TagCount> getTags()

      getTags.

      Specified by:
      getTags in interface TagGroup
      Returns:
      a List object.
    • compareTo

      public int compareTo(TagGroup o)
      Specified by:
      compareTo in interface Comparable<TagGroup>
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

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

      public int getPages()

      getPages.

      Specified by:
      getPages in interface TagGroup
      Returns:
      the number of pages in this group
    • getPageOrder

      public Integer getPageOrder()

      getPageOrder.

      Specified by:
      getPageOrder in interface TagGroup
      Returns:
      the page order of the first (or only) page in this group
    • addTags

      public void addTags(List<TagCount> tags)

      addTags.

      Specified by:
      addTags in interface TagGroup
      Parameters:
      tags - a List object.