|Modifier and Type||Method and Description|
Parses a string representing an order by request into the
<T extends Enum<T>> com.atlassian.fugue.Either<ErrorCollection,OrderByRequest<T>> parse(String orderByValue, Class<T> fields)
OrderByRequestobject. 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.
T- enum type
orderByValue- value to parse
fields- all available fields declared in an enum
Copyright © 2002-2017 Atlassian. All Rights Reserved.