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. |
public static Sorter sorter(boolean ascending, boolean nullsFirst)
Sorter. The sorter has the following properties
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 © 2014–2018 Blazebit. All rights reserved.