Package org.mongojack
Class DBSort
- java.lang.Object
-
- org.mongojack.DBSort
-
@Deprecated public class DBSort extends Object
Deprecated.Prefer com.mongodb.client.model.SortsHelper class for building sort specifications.- Since:
- 2.0.0
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
DBSort.SortBuilder
Deprecated.
-
Constructor Summary
Constructors Constructor Description DBSort()
Deprecated.
-
Method Summary
All Methods Static Methods Concrete Methods Deprecated Methods Modifier and Type Method Description static DBSort.SortBuilder
asc(String field)
Deprecated.Sort ascending by the given field.static DBSort.SortBuilder
desc(String field)
Deprecated.Sort descending by the given field.
-
-
-
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.
-
-