org.apache.ctakes.dictionary.lookup
Class MetaDataHitComparator
java.lang.Object
org.apache.ctakes.dictionary.lookup.MetaDataHitComparator
- All Implemented Interfaces:
- Comparator<MetaDataHit>, MetaDataHitConst
public class MetaDataHitComparator
- extends Object
- implements Comparator<MetaDataHit>, MetaDataHitConst
Allows two MetaDataHit objects to be compared based on a specific metadata
value that they both contain.
- Author:
- Mayo Clinic
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MetaDataHitComparator
public MetaDataHitComparator(String metaFieldName,
int type,
boolean sortAscending)
- Constructor
- Parameters:
metaFieldName
- type
- sortAscending
-
compare
public int compare(MetaDataHit mdh1,
MetaDataHit mdh2)
- Implementation
- Specified by:
compare
in interface Comparator<MetaDataHit>
Copyright © 2012-2013 The Apache Software Foundation. All Rights Reserved.