PageRenderTime 23ms CodeModel.GetById 21ms app.highlight 1ms RepoModel.GetById 0ms app.codeStats 1ms

/tags/3.1.0/src/org/getopt/luke/FieldTermCount.java

http://luke.googlecode.com/
Java | 16 lines | 14 code | 2 blank | 0 comment | 4 complexity | 65a910eb729cbf70773849600d4a478f MD5 | raw file
 1package org.getopt.luke;
 2
 3public class FieldTermCount implements Comparable<FieldTermCount> {
 4  public String fieldname;
 5  public long termCount;
 6
 7  public int compareTo(FieldTermCount f2) {
 8    if (termCount > f2.termCount) {
 9      return -1;
10    } else if (termCount < f2.termCount) {
11        return 1;
12    } else {
13      return 0;
14    }
15  }
16}