org.appng.api.rest.model

## Class Sort

- java.lang.Object
- - org.appng.api.rest.model.Sort

- All Implemented Interfaces:
    Serializable

      @Generated(value="io.swagger.codegen.languages.JavaClientCodegen",
                 date="2023-03-20T12:57:47.319+01:00")
      public class Sort
      extends Object
      implements Serializable

  Marks a field as sortable, properties are filled only when sorting has been applied.
  See Also:
    Serialized Form

- - ### Nested Class Summary

    Nested Classes
    Modifier and Type | Class and Description
    --- | ---
    `static class` | `Sort.OrderEnum` The order for this sort (ascending or descending).

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `Sort()`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `boolean` | `equals(Object o)`
    `Sort.OrderEnum` | `getOrder()` The order for this sort (ascending or descending).
    `Integer` | `getPrio()` The priority for this sort, important when a multi-field sort is applied.
    `int` | `hashCode()`
    `Sort` | `order(Sort.OrderEnum order)`
    `Sort` | `prio(Integer prio)`
    `void` | `setOrder(Sort.OrderEnum order)`
    `void` | `setPrio(Integer prio)`
    `String` | `toString()`

    - ### Methods inherited from class java.lang.Object

      `clone, finalize, getClass, notify, notifyAll, wait, wait, wait`

- - ### Constructor Detail

    - #### Sort

          public Sort()

  - ### Method Detail

    - #### prio

          public Sort prio(Integer prio)

    - #### getPrio

          public Integer getPrio()

      The priority for this sort, important when a multi-field sort is applied.
      Returns:
        prio

    - #### setPrio

          public void setPrio(Integer prio)

    - #### order

          public Sort order(Sort.OrderEnum order)

    - #### getOrder

          public Sort.OrderEnum getOrder()

      The order for this sort (ascending or descending).
      Returns:
        order

    - #### setOrder

          public void setOrder(Sort.OrderEnum order)

    - #### equals

          public boolean equals(Object o)

      Overrides:
        `equals` in class `Object`

    - #### hashCode

          public int hashCode()

      Overrides:
        `hashCode` in class `Object`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

Copyright © 2011–2023 aiticon GmbH. All rights reserved.