Record Class Sort.Order
java.lang.Object
java.lang.Record
cloud.opencode.base.core.page.Sort.Order
- Record Components:
property- the property or column name | 属性或列名direction- the sort direction | 排序方向
- Enclosing class:
Sort
A single sort order: property + direction.
单个排序规范:属性 + 方向。
- Since:
- JDK 25, opencode-base-core V1.0.0
- Author:
- Leon Soo www.LeonSoo.com
-
Constructor Summary
ConstructorsConstructorDescriptionOrder(String property, Sort.Direction direction) Creates an instance of aOrderrecord class. -
Method Summary
Modifier and TypeMethodDescriptionstatic Sort.Orderstatic Sort.OrderReturns the value of thedirectionrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.property()Returns the value of thepropertyrecord component.reversed()toSql()Renders this order as a SQL fragment, e.g.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Method Details
-
asc
-
desc
-
reversed
-
toSql
Renders this order as a SQL fragment, e.g.name ASC. 渲染为 SQL 片段,例如name ASC。- Returns:
- SQL fragment | SQL 片段
-
toString
-
hashCode
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
property
-
direction
-