public abstract class HitGroupProperty extends GroupProperty<Hit,HitGroup>
reverse
Constructor and Description |
---|
HitGroupProperty() |
Modifier and Type | Method and Description |
---|---|
abstract int |
compare(HitGroup a,
HitGroup b)
Compares two groups on this property
|
static HitGroupProperty |
deserialize(String serialized) |
abstract PropertyValue |
get(HitGroup result)
Get the property value for a specific result.
|
static HitGroupPropertyIdentity |
identity() |
boolean |
isReverse()
Is the comparison reversed?
|
abstract HitGroupProperty |
reverse()
Reverse the comparison.
|
abstract String |
serialize()
Serialize this HitProperty so we can deserialize it later (to pass it via
URL, for example)
|
String |
serializeReverse()
Used by subclasses to add a dash for reverse when serializing
|
static HitGroupPropertySize |
size() |
String |
toString() |
equals, hashCode, sortDescendingByDefault
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
ignoreSensitivity, isCompound, name, propNames, props
comparing, comparing, comparingDouble, comparingInt, comparingLong, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public static HitGroupPropertyIdentity identity()
public static HitGroupPropertySize size()
public abstract PropertyValue get(HitGroup result)
ResultProperty
get
in interface ResultProperty<HitGroup>
get
in class GroupProperty<Hit,HitGroup>
result
- result to get property value forpublic abstract int compare(HitGroup a, HitGroup b)
compare
in interface Comparator<HitGroup>
compare
in interface ResultProperty<HitGroup>
compare
in class GroupProperty<Hit,HitGroup>
a
- first groupb
- second grouppublic abstract String serialize()
ResultProperty
serialize
in interface ResultProperty<HitGroup>
serialize
in class GroupProperty<Hit,HitGroup>
public String serializeReverse()
serializeReverse
in interface ResultProperty<HitGroup>
serializeReverse
in class GroupProperty<Hit,HitGroup>
public static HitGroupProperty deserialize(String serialized)
public boolean isReverse()
isReverse
in interface ResultProperty<HitGroup>
isReverse
in class GroupProperty<Hit,HitGroup>
public abstract HitGroupProperty reverse()
reverse
in interface ResultProperty<HitGroup>
reverse
in class GroupProperty<Hit,HitGroup>
public String toString()
toString
in interface ResultProperty<HitGroup>
toString
in class GroupProperty<Hit,HitGroup>
Copyright © 2020 Instituut voor Nederlandse Taal (INT). All rights reserved.