|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GroupingObject
A grouping object.
Grouping objects are used to aggregate (group) search results.
Grouping objects are used as map keys, so they must implement the equals and hashCode methods.
Method Summary | |
---|---|
boolean |
equals(java.lang.Object obj)
Returns true if this object equals some other object. |
Spelling |
getGroupingSpelling(int numHits)
Gets the spelling of the grouping object. |
java.lang.String |
getReportPhrase()
Gets the report phrase. |
int |
hashCode()
Returns a hash code for the object. |
Method Detail |
---|
java.lang.String getReportPhrase()
This phrase is used in search result reports. E.g., for works the phrase is "in", while for lemmas the phrase is "with lemma".
Spelling getGroupingSpelling(int numHits)
numHits
- Number of hits. The method may use this
parameter if it needs to return a singular
(numHits = 1) versus a plural (numHit > 1) form.
boolean equals(java.lang.Object obj)
Grouping objects must implement the equals method.
equals
in class java.lang.Object
obj
- The other object.
int hashCode()
Grouping objects must implement the hashCode method.
hashCode
in class java.lang.Object
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |