Package org.mongojack

Class DBSort


  • @Deprecated
    public class DBSort
    extends Object
    Deprecated.
    Prefer com.mongodb.client.model.Sorts
    Helper class for building sort specifications.
    Since:
    2.0.0
    • Constructor Detail

      • DBSort

        public DBSort()
        Deprecated.
    • Method Detail

      • asc

        public static DBSort.SortBuilder asc​(String field)
        Deprecated.
        Sort ascending by the given field.
        Parameters:
        field - The field to sort by.
        Returns:
        The sort specification.
      • desc

        public static DBSort.SortBuilder desc​(String field)
        Deprecated.
        Sort descending by the given field.
        Parameters:
        field - The field to sort by.
        Returns:
        The sort specification.