public static final class FeatureQuery.SortOperator extends Object implements AutoCloseable
SortOperator
class contains a list of properties that must be taken into account for sorting.Modifier and Type | Method and Description |
---|---|
void |
close() |
boolean |
equals(Object other) |
protected void |
finalize() |
List<FeatureQuery.SortProperty> |
getSortProperties()
Returns the list of sort properties.
|
int |
hashCode()
Returns the hash value for this sort operator.
|
static FeatureQuery.SortOperator |
sortBy(DataPropertyPath propertyPath)
Returns a new 'sortby' operator.
|
static FeatureQuery.SortOperator |
sortBy(DataPropertyPath propertyPath,
FeatureQuery.SortOrder order)
Returns a new 'sortby' operator.
|
FeatureQuery.SortOperator |
thenBy(DataPropertyPath propertyPath)
Creates a secondary sorting operator that is used as fallback when the main sorting operator encounters the same value.
|
FeatureQuery.SortOperator |
thenBy(DataPropertyPath propertyPath,
FeatureQuery.SortOrder order)
Creates a secondary sorting operator that is used as fallback when the main sorting operator encounters the same value.
|
public void close()
close
in interface AutoCloseable
@NotNull public static FeatureQuery.SortOperator sortBy(@NotNull DataPropertyPath propertyPath, @NotNull FeatureQuery.SortOrder order)
propertyPath
- the path to the property that is used for the sort operationorder
- the sorting order: ascending or descending@NotNull public static FeatureQuery.SortOperator sortBy(@NotNull DataPropertyPath propertyPath)
propertyPath
- the path to the property that is used for the sort operation@NotNull public FeatureQuery.SortOperator thenBy(@NotNull DataPropertyPath propertyPath, @NotNull FeatureQuery.SortOrder order)
propertyPath
- the path to the property that is used for the sort operationorder
- the sorting order: ascending or descending@NotNull public FeatureQuery.SortOperator thenBy(@NotNull DataPropertyPath propertyPath)
propertyPath
- the path to the property that is used for the sort operation@NotNull public List<FeatureQuery.SortProperty> getSortProperties()
public int hashCode()