Modifier and Type | Class and Description |
---|---|
static class |
Sorting.AttributeSorter |
static class |
Sorting.FieldOrder
An attribute (field) and how it should be sorted
|
static class |
Sorting.LowerCaseSorter |
static class |
Sorting.Order |
static class |
Sorting.RawSorter |
static class |
Sorting.UcaSorter |
Modifier and Type | Field and Description |
---|---|
private List<Sorting.FieldOrder> |
fieldOrders |
static String |
LOWERCASE |
static String |
RAW |
static String |
STRENGTH_IDENTICAL |
static String |
STRENGTH_PRIMARY |
static String |
STRENGTH_QUATERNARY |
static String |
STRENGTH_SECONDARY |
static String |
STRENGTH_TERTIARY |
static String |
UCA |
Constructor and Description |
---|
Sorting()
Creates an empty sort spec
|
Sorting(List<Sorting.FieldOrder> fieldOrders) |
Sorting(String sortSpec)
Creates a sort spec from a string
|
Modifier and Type | Method and Description |
---|---|
Sorting |
clone() |
int |
encode(ByteBuffer buffer) |
boolean |
equals(Object o) |
List<Sorting.FieldOrder> |
fieldOrders()
Returns the field orders of this sort specification as list.
|
static Sorting |
fromString(String sortSpec)
Creates a new sorting from the given string and returns it, or returns null if the argument does not contain
any sorting criteria (e.g it is null or the empty string)
|
int |
hashCode() |
private void |
setSpec(String rawSortSpec) |
String |
toString() |
public static final String STRENGTH_IDENTICAL
public static final String STRENGTH_QUATERNARY
public static final String STRENGTH_TERTIARY
public static final String STRENGTH_SECONDARY
public static final String STRENGTH_PRIMARY
public static final String UCA
public static final String RAW
public static final String LOWERCASE
private final List<Sorting.FieldOrder> fieldOrders
public Sorting()
public Sorting(List<Sorting.FieldOrder> fieldOrders)
public Sorting(String sortSpec)
public static Sorting fromString(String sortSpec)
private void setSpec(String rawSortSpec)
public List<Sorting.FieldOrder> fieldOrders()
public int encode(ByteBuffer buffer)
Copyright © 2018. All rights reserved.