Class FeatureQuery.SortOperator

java.lang.Object
com.luciad.models.features.FeatureQuery.SortOperator
All Implemented Interfaces:
AutoCloseable
Enclosing class:
FeatureQuery

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.
  • Method Details

    • finalize

      protected void finalize()
      Overrides:
      finalize in class Object
    • close

      public void close()
      Specified by:
      close in interface AutoCloseable
    • 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 operation
      order - the sorting order: ascending or descending
      Returns:
      a new 'sortby' operator.
    • sortBy

      @NotNull public static FeatureQuery.SortOperator sortBy(@NotNull DataPropertyPath propertyPath)
      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 operation
      order - the sorting order: ascending or descending
      Returns:
      a secondary sorting operator.
    • thenBy

      @NotNull public FeatureQuery.SortOperator thenBy(@NotNull DataPropertyPath propertyPath)
      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

      @NotNull public List<@NotNull FeatureQuery.SortProperty> 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.
      Overrides:
      hashCode in class Object
      Returns:
      the hash value for this sort operator.
    • equals

      public boolean equals(@Nullable Object other)
      Overrides:
      equals in class Object