public class OrderByRequestParserImpl extends Object implements OrderByRequestParser
Constructor and Description |
---|
OrderByRequestParserImpl(I18nHelper i18n) |
Modifier and Type | Method and Description |
---|---|
<T extends Enum<T>> |
parse(String orderByValue,
Class<T> fields)
Parses a string representing an order by request into the
OrderByRequest object. |
public OrderByRequestParserImpl(I18nHelper i18n)
public <T extends Enum<T>> com.atlassian.fugue.Either<ErrorCollection,OrderByRequest<T>> parse(String orderByValue, Class<T> fields)
OrderByRequestParser
OrderByRequest
object. Works
only if field type of the expected order by request is an enum. Expected representation is as follows:
Parsing is case insensitive so the above example will succeed if there is a NAME
value in the supplied enum type.
parse
in interface OrderByRequestParser
T
- enum typeorderByValue
- value to parsefields
- all available fields declared in an enumCopyright © 2002-2017 Atlassian. All Rights Reserved.