Class CompareYearSolrDocWrapper

java.lang.Object
io.goobi.viewer.model.metadata.CompareYearSolrDocWrapper
All Implemented Interfaces:
Comparable<CompareYearSolrDocWrapper>

public class CompareYearSolrDocWrapper extends Object implements Comparable<CompareYearSolrDocWrapper>

CompareYearSolrDocWrapper class.

  • Constructor Details Link icon

    • CompareYearSolrDocWrapper Link icon

      public CompareYearSolrDocWrapper(org.apache.solr.common.SolrDocument doc)

      Constructor for CompareYearSolrDocWrapper.

      Parameters:
      doc - a SolrDocument object.
  • Method Details Link icon

    • compareTo Link icon

      public int compareTo(CompareYearSolrDocWrapper comp)
      Specified by:
      compareTo in interface Comparable<CompareYearSolrDocWrapper>
    • hashCode Link icon

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

      public boolean equals(Object obj)
      Overrides:
      equals in class Object
    • getSolrDocument Link icon

      public org.apache.solr.common.SolrDocument getSolrDocument()

      Getter for the field solrDocument.

      Returns:
      a SolrDocument object.
    • setSolrDocument Link icon

      public void setSolrDocument(org.apache.solr.common.SolrDocument solrDocument)

      Setter for the field solrDocument.

      Parameters:
      solrDocument - a SolrDocument object.
    • getYear Link icon

      public long getYear()

      Getter for the field year.

      Returns:
      a long.
    • setYear Link icon

      public void setYear(long year)

      Setter for the field year.

      Parameters:
      year - a long.