software/browser-util/src/gov/nih/nci/evs/browser/utils/ScoredTerm.java
/**
     * Compare this ScoredTerm to another. Comparison is by score, using
     * description text as tie-breaker ...
     */
Compare this ScoredTerm to another. Comparison is by score, using
description text as tie-breaker
Compare this ScoredTerm to another . Comparison is by score using description text as tie - breaker
public int compareTo(ScoredTerm st) {
		float f = st._score - _score;
		if (f != 0)
			return f > 0 ? 1 : 0;
		EntityDescription ed1 = _ref.getEntityDescription();
		EntityDescription ed2 = st._ref.getEntityDescription();
		String term1 = ed1 != null ? ed1.getContent() : "";
		String term2 = ed2 != null ? ed2.getContent() : "";
		return term1.compareTo(term2);
    }
public int compareTo ( ScoredTerm st ) { float f = st . _score - _score ; if ( f != 0 ) return f > 0 ? 1 : 0 ; EntityDescription ed1 = _ref . getEntityDescription ( ) ; EntityDescription ed2 = st . _ref . getEntityDescription ( ) ; String term1 = ed1 != null ? ed1 . getContent ( ) : "" ; String term2 = ed2 != null ? ed2 . getContent ( ) : "" ; return term1 . compareTo ( term2 ) ; }
Compare this ScoredTerm to another.
Compare this ScoredTerm to another .