Package io.goobi.viewer.model.metadata
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 Summary
ConstructorDescriptionCompareYearSolrDocWrapper
(org.apache.solr.common.SolrDocument doc) Constructor for CompareYearSolrDocWrapper. -
Method Summary
Modifier and TypeMethodDescriptionint
boolean
org.apache.solr.common.SolrDocument
Getter for the fieldsolrDocument
.long
getYear()
Getter for the fieldyear
.int
hashCode()
void
setSolrDocument
(org.apache.solr.common.SolrDocument solrDocument) Setter for the fieldsolrDocument
.void
setYear
(long year) Setter for the fieldyear
.
-
Constructor Details
-
CompareYearSolrDocWrapper
public CompareYearSolrDocWrapper(org.apache.solr.common.SolrDocument doc) Constructor for CompareYearSolrDocWrapper.
- Parameters:
doc
- aSolrDocument
object.
-
-
Method Details
-
compareTo
- Specified by:
compareTo
in interfaceComparable<CompareYearSolrDocWrapper>
-
hashCode
public int hashCode() -
equals
-
getSolrDocument
public org.apache.solr.common.SolrDocument getSolrDocument()Getter for the field
solrDocument
.- Returns:
- a
SolrDocument
object.
-
setSolrDocument
public void setSolrDocument(org.apache.solr.common.SolrDocument solrDocument) Setter for the field
solrDocument
.- Parameters:
solrDocument
- aSolrDocument
object.
-
getYear
public long getYear()Getter for the field
year
.- Returns:
- a long.
-
setYear
public void setYear(long year) Setter for the field
year
.- Parameters:
year
- a long.
-