three-way comparison . a word x is greater than a word y if x has a higher frequency . if they have the same frequency , they are sorted in lexicographic order . concode_field_sep ArrayList<WeightedString> mBigrams concode_elem_sep int mFrequency concode_elem_sep String mWord concode_field_sep boolean equals
int function ( Word arg0 ) { if ( mFrequency < arg0 . mFrequency ) return 1 ; if ( mFrequency > arg0 . mFrequency ) return - 1 ; return mWord . compareTo ( arg0 . mWord ) ; }