public class ConceptSearchResult extends Object implements Serializable
Modifier | Constructor and Description |
---|---|
|
ConceptSearchResult()
default constructor
|
protected |
ConceptSearchResult(ConceptWord conceptWord)
Optional constructor for turning a conceptWord into a conceptSearchResult, the constructor is
hidden from API users so as to hide the idea of conceptWord, it is meant to be used
underneath the API for convenience purposes.
|
|
ConceptSearchResult(String word,
Concept concept,
ConceptName conceptName)
Convenience constructor
|
|
ConceptSearchResult(String word,
Concept concept,
ConceptName conceptName,
Double transientWeight)
Convenience constructor that takes in a weight too
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj) |
Concept |
getConcept() |
ConceptName |
getConceptName() |
Double |
getTransientWeight()
Getter for transientWeight
|
String |
getWord() |
int |
hashCode() |
void |
setConcept(Concept concept) |
void |
setConceptName(ConceptName conceptName) |
void |
setTransientWeight(Double transientWeight)
Setter transientWeight
|
void |
setWord(String word) |
public ConceptSearchResult()
protected ConceptSearchResult(ConceptWord conceptWord)
conceptWord
- the conceptWord from which to construct a search resultpublic ConceptSearchResult(String word, Concept concept, ConceptName conceptName)
word
- the single word that will be matched to search termsconcept
- the concept that is being matched toconceptName
- the specific name that will be matchedpublic ConceptSearchResult(String word, Concept concept, ConceptName conceptName, Double transientWeight)
word
- the single word that will be matched to search termsconcept
- the concept that is being matched toconceptName
- the specific name that will be matchedtransientWeight
- the weight for this conceptSearchResultpublic Concept getConcept()
public void setConcept(Concept concept)
concept
- the concept to setpublic ConceptName getConceptName()
public void setConceptName(ConceptName conceptName)
conceptName
- the conceptName to setpublic String getWord()
public void setWord(String word)
word
- the word to setpublic Double getTransientWeight()
public void setTransientWeight(Double transientWeight)
transientWeight
- public boolean equals(Object obj)
equals
in class Object
Object.equals(Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2018 OpenMRS LLC.. All Rights Reserved.