|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.LexGrid.LexBIG.Impl.helpers.DefaultCodeHolder
public class DefaultCodeHolder
Class to hold unique concepts per code system that should be returned as a result of a query.
Constructor Summary | |
---|---|
DefaultCodeHolder()
|
|
DefaultCodeHolder(java.util.List<CodeToReturn> codes)
|
Method Summary | |
---|---|
void |
add(CodeToReturn code)
Adds the code. |
CodeHolder |
clone()
|
boolean |
contains(CodeToReturn code)
Contains. |
void |
difference(CodeHolder otherCodes)
Difference. |
java.util.List<CodeToReturn> |
getAllCodes()
Gets the all codes. |
int |
getNumberOfCodes()
Gets the number of codes. |
void |
intersect(CodeHolder otherCodes)
Intersect. |
void |
remove(CodeToReturn code)
Removes the. |
void |
union(CodeHolder otherCodes)
Union. |
boolean |
wereScoresCollected()
|
Methods inherited from class java.lang.Object |
---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public DefaultCodeHolder(java.util.List<CodeToReturn> codes)
public DefaultCodeHolder()
Method Detail |
---|
public boolean wereScoresCollected()
public void add(CodeToReturn code)
AdditiveCodeHolder
add
in interface AdditiveCodeHolder
code
- the codepublic void remove(CodeToReturn code)
CodeHolder
remove
in interface CodeHolder
code
- the codepublic java.util.List<CodeToReturn> getAllCodes()
CodeHolder
getAllCodes
in interface CodeHolder
public boolean contains(CodeToReturn code)
CodeHolder
contains
in interface CodeHolder
code
- the code
public void union(CodeHolder otherCodes)
CodeHolder
union
in interface CodeHolder
otherCodes
- the other codespublic void intersect(CodeHolder otherCodes)
CodeHolder
intersect
in interface CodeHolder
otherCodes
- the other codespublic void difference(CodeHolder otherCodes)
CodeHolder
difference
in interface CodeHolder
otherCodes
- the other codespublic int getNumberOfCodes()
CodeHolder
getNumberOfCodes
in interface CodeHolder
public CodeHolder clone() throws java.lang.CloneNotSupportedException
clone
in interface CodeHolder
clone
in class java.lang.Object
java.lang.CloneNotSupportedException
|
Copyright: (c) 2004-2006 Mayo Foundation for Medical Education and Research (MFMER). All rights reserved. MAYO, MAYO CLINIC, and the triple-shield Mayo logo are trademarks and service marks of MFMER. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |