public final class Sorters extends Object
Modifier and Type | Method and Description |
---|---|
static Sorter |
ascending()
Like
ascending(boolean) but with nullsFirst set to false. |
static Sorter |
ascending(boolean nullsFirst)
Like
sorter(boolean, boolean) but with ascending set to true. |
static Sorter |
descending()
Like
descending(boolean) but with nullsFirst set to false. |
static Sorter |
descending(boolean nullsFirst)
Like
sorter(boolean, boolean) but with ascending set to false. |
static Sorter |
sorter(boolean ascending,
boolean nullsFirst)
Creates and returns a new
Sorter that
sorts ascending if the flag ascending is true, descending otherwise
sorts nulls first is the flag nullsFirst is ture, nulls last otherwise
|
public static Sorter sorter(boolean ascending, boolean nullsFirst)
Sorter
that
ascending
is true, descending otherwisenullsFirst
is ture, nulls last otherwiseascending
- If true sorts ascending, otherwise descendingnullsFirst
- If true sorts nulls first, otherwise nulls lastpublic static Sorter ascending(boolean nullsFirst)
sorter(boolean, boolean)
but with ascending
set to true.nullsFirst
- If true sorts nulls first, otherwise nulls lastpublic static Sorter descending(boolean nullsFirst)
sorter(boolean, boolean)
but with ascending
set to false.nullsFirst
- If true sorts nulls first, otherwise nulls lastpublic static Sorter ascending()
ascending(boolean)
but with nullsFirst
set to false.public static Sorter descending()
descending(boolean)
but with nullsFirst
set to false.Copyright © 2015 Blazebit. All Rights Reserved.