Class SortArg<O extends Identifiable>

All Implemented Interfaces:
Arg<SortArg.Sort>

public class SortArg<O extends Identifiable> extends AbstractArg<SortArg.Sort>
Represents an API argument for sorting.
Author:
tesarst
  • Method Details

    • valueOf

      public static <T extends Identifiable> SortArg<T> valueOf(String s) throws MalformedArgException
      Used by RS to parse value of request parameters.
      Parameters:
      s - the request taxon argument
      Returns:
      a new SortArg object representing the sort options in the given string, or a malformed SortArg that will throw a BadRequestException, if the given string was not well-formed.
      Throws:
      MalformedArgException