Package com.luciad.models.features
Class FeatureQuery.SortOperator
java.lang.Object
com.luciad.models.features.FeatureQuery.SortOperator
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
FeatureQuery
SortOperator
class contains a list of properties that must be taken into account for sorting.-
Method Summary
Modifier and TypeMethodDescriptionvoid
close()
boolean
protected void
finalize()
List
<@NotNull FeatureQuery.SortProperty> 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.thenBy
(DataPropertyPath propertyPath) Creates a secondary sorting operator that is used as fallback when the main sorting operator encounters the same value.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.
-
Method Details
-
finalize
protected void finalize() -
close
public void close()- Specified by:
close
in interfaceAutoCloseable
-
sortBy
@NotNull public static FeatureQuery.SortOperator sortBy(@NotNull DataPropertyPath propertyPath, @NotNull FeatureQuery.SortOrder order) Returns a new 'sortby' operator.- Parameters:
propertyPath
- the path to the property that is used for the sort operationorder
- the sorting order: ascending or descending- Returns:
- a new 'sortby' operator.
-
sortBy
Returns a new 'sortby' operator.- Parameters:
propertyPath
- the path to the property that is used for the sort operation- Returns:
- a new 'sortby' operator.
-
thenBy
@NotNull public FeatureQuery.SortOperator thenBy(@NotNull DataPropertyPath propertyPath, @NotNull FeatureQuery.SortOrder order) Creates a secondary sorting operator that is used as fallback when the main sorting operator encounters the same value.- Parameters:
propertyPath
- the path to the property that is used for the sort operationorder
- the sorting order: ascending or descending- Returns:
- a secondary sorting operator.
-
thenBy
Creates a secondary sorting operator that is used as fallback when the main sorting operator encounters the same value.- Parameters:
propertyPath
- the path to the property that is used for the sort operation- Returns:
- a secondary sorting operator.
-
getSortProperties
Returns the list of sort properties.- Returns:
- the list of sort properties.
-
hashCode
public int hashCode()Returns the hash value for this sort operator. -
equals
-