public class ConceptSearchResult extends Object
Constructor and Description |
---|
ConceptSearchResult()
default constructor
|
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()
public 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(java.lang.Object)
public int hashCode()
hashCode
in class Object
Object.hashCode()
Copyright © 2024 OpenMRS Inc.. All rights reserved.