public class DocGroupPropertySize extends DocGroupProperty
reverse
Constructor and Description |
---|
DocGroupPropertySize() |
Modifier and Type | Method and Description |
---|---|
int |
compare(DocGroup a,
DocGroup b)
Compares two groups on this property
|
PropertyValueInt |
get(DocGroup result)
Get the property value for a specific result.
|
String |
name()
Get the name of the property
|
DocGroupPropertySize |
reverse()
Reverse the comparison.
|
String |
serialize()
Serialize this HitProperty so we can deserialize it later (to pass it via
URL, for example)
|
protected boolean |
sortDescendingByDefault()
Is the default for this property to sort descending?
This is usually a good default for "group size" or "number of hits".
|
deserialize, identity, isReverse, serializeReverse, size, toString
equals, hashCode
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
ignoreSensitivity, isCompound, propNames, props
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
protected boolean sortDescendingByDefault()
GroupProperty
sortDescendingByDefault
in class GroupProperty<DocResult,DocGroup>
public PropertyValueInt get(DocGroup result)
ResultProperty
get
in interface ResultProperty<DocGroup>
get
in class DocGroupProperty
result
- result to get property value forpublic int compare(DocGroup a, DocGroup b)
DocGroupProperty
compare
in interface Comparator<DocGroup>
compare
in interface ResultProperty<DocGroup>
compare
in class DocGroupProperty
a
- first groupb
- second grouppublic String serialize()
ResultProperty
serialize
in interface ResultProperty<DocGroup>
serialize
in class DocGroupProperty
public DocGroupPropertySize reverse()
DocGroupProperty
reverse
in interface ResultProperty<DocGroup>
reverse
in class DocGroupProperty
public String name()
ResultProperty
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.