|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object gov.nih.nlm.nls.tc.MedLine.CitationComparator<T>
public class CitationComparator<T extends java.util.Vector<KeyValueObj<java.lang.String,java.util.Vector<java.lang.String>>>>
This class provides methods to compare citation by specified field.
History:
Constructor Summary | |
---|---|
CitationComparator()
|
Method Summary | |
---|---|
int |
compare(T o1,
T o2)
This method compare two citation objects by the specified compare flag. |
void |
SetCompareField(java.lang.String fieldFlag)
Set the comparing flag |
void |
SetCompareLengthFlag(boolean compareLengthFlag)
Set the flag of copareing length |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface java.util.Comparator |
---|
equals |
Constructor Detail |
---|
public CitationComparator()
Method Detail |
---|
public int compare(T o1, T o2)
compare
in interface java.util.Comparator<T extends java.util.Vector<KeyValueObj<java.lang.String,java.util.Vector<java.lang.String>>>>
o1
- the first citation object to be comparedo2
- the second citation object to be compared
public void SetCompareField(java.lang.String fieldFlag)
fieldFlag
- comparing field flag: any MEDLINE citation tag.public void SetCompareLengthFlag(boolean compareLengthFlag)
compareLengthFlag
- boolean flag for coparing length.
True to compare length first, then the alphabetic order,
|
TC Java 2011 Version |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |