java.lang.Object
com.peterphi.std.guice.restclient.jaxb.webquery.WQOrder

public class WQOrder extends Object
Defines a sort instruction
  • Field Details

    • field

      public String field
    • direction

      public String direction
      ASC or DESC
  • Constructor Details

    • WQOrder

      public WQOrder()
    • WQOrder

      public WQOrder(String field, String direction)
  • Method Details

    • getField

      public String getField()
    • getDirection

      public String getDirection()
    • isAsc

      public boolean isAsc()
    • toLegacyForm

      public String toLegacyForm()
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • asc

      public static WQOrder asc(String field)
    • desc

      public static WQOrder desc(String field)
    • parseLegacy

      public static WQOrder parseLegacy(String expr)