public static enum OrderedIndex.OrderDirection extends java.lang.Enum<OrderedIndex.OrderDirection>
Enum Constant and Description |
---|
ASC
ascending order configuration (default)
|
DESC
descending order configuration
|
Modifier and Type | Method and Description |
---|---|
static OrderedIndex.OrderDirection |
fromIndexMeta(NodeState indexMeta)
tells whether the provided index definition is ascending or descending
|
static @Nullable OrderedIndex.OrderDirection |
fromString(@NotNull java.lang.String direction)
retrieve an
OrderDirection from a provided String. |
java.lang.String |
getDirection() |
boolean |
isAscending() |
static boolean |
isAscending(NodeState indexMeta)
convenience method that tells if the provided index definition is ascending
|
boolean |
isDescending() |
static boolean |
isDescending(NodeState indexMeta)
convenience method that tells if the provided index definition is descending
|
static OrderedIndex.OrderDirection |
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.
|
static OrderedIndex.OrderDirection[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final OrderedIndex.OrderDirection ASC
public static final OrderedIndex.OrderDirection DESC
public static OrderedIndex.OrderDirection[] values()
for (OrderedIndex.OrderDirection c : OrderedIndex.OrderDirection.values()) System.out.println(c);
public static OrderedIndex.OrderDirection valueOf(java.lang.String name)
name
- the name of the enum constant to be returned.java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is nullpublic java.lang.String getDirection()
@Nullable public static @Nullable OrderedIndex.OrderDirection fromString(@NotNull @NotNull java.lang.String direction)
OrderDirection
from a provided String. Will return null in case of
no-matchdirection
- the direction of the sorting: ascending or descendingpublic static OrderedIndex.OrderDirection fromIndexMeta(NodeState indexMeta)
indexMeta
- public static boolean isDescending(NodeState indexMeta)
indexMeta
- public boolean isAscending()
public boolean isDescending()
public static boolean isAscending(NodeState indexMeta)
indexMeta
- Copyright © 2010 - 2020 Adobe. All Rights Reserved