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
ConstructorsConstructorDescriptionCompareYearSolrDocWrapper(org.apache.solr.common.SolrDocument doc) Constructor for CompareYearSolrDocWrapper. -
Method Summary
Modifier and TypeMethodDescriptionintbooleanorg.apache.solr.common.SolrDocumentGetter for the fieldsolrDocument.longgetYear()Getter for the fieldyear.inthashCode()voidsetSolrDocument(org.apache.solr.common.SolrDocument solrDocument) Setter for the fieldsolrDocument.voidsetYear(long year) Setter for the fieldyear.
-
Constructor Details
-
CompareYearSolrDocWrapper
public CompareYearSolrDocWrapper(org.apache.solr.common.SolrDocument doc) Constructor for CompareYearSolrDocWrapper.
- Parameters:
doc- aSolrDocumentobject.
-
-
Method Details
-
compareTo
- Specified by:
compareToin interfaceComparable<CompareYearSolrDocWrapper>
-
hashCode
public int hashCode() -
equals
-
getSolrDocument
public org.apache.solr.common.SolrDocument getSolrDocument()Getter for the field
solrDocument.- Returns:
- a
SolrDocumentobject.
-
setSolrDocument
public void setSolrDocument(org.apache.solr.common.SolrDocument solrDocument) Setter for the field
solrDocument.- Parameters:
solrDocument- aSolrDocumentobject.
-
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.
-