public interface DataQueryOrderFunction
DataQueryOrder comparator for
PermissionHolders as required during inheritance.| Modifier and Type | Field and Description |
|---|---|
static OptionKey<DataQueryOrderFunction> |
KEY
The
OptionKey for DataQueryOrderFunction. |
| Modifier and Type | Method and Description |
|---|---|
static DataQueryOrderFunction |
always(Comparator<DataType> comparator)
Creates a
DataQueryOrderFunction that always returns the given
comparator. |
@NonNull Comparator<DataType> |
getOrderComparator(PermissionHolder.Identifier holderIdentifier)
Gets the
DataQueryOrder comparator for the given
holder identifier. |
static final OptionKey<DataQueryOrderFunction> KEY
OptionKey for DataQueryOrderFunction.static DataQueryOrderFunction always(Comparator<DataType> comparator)
DataQueryOrderFunction that always returns the given
comparator.comparator - the comparator@NonNull Comparator<DataType> getOrderComparator(PermissionHolder.Identifier holderIdentifier)
DataQueryOrder comparator for the given
holder identifier.holderIdentifier - the holder identifier