Interface DataTypeFilterFunction
-
public interface DataTypeFilterFunctionA function that generates aDataTypeFilterpredicate forPermissionHolders as required during inheritance.- Since:
- 5.2
-
-
Field Summary
Fields Modifier and Type Field Description static OptionKey<DataTypeFilterFunction>KEYTheOptionKeyforDataTypeFilterFunction.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Modifier and Type Method Description static DataTypeFilterFunctionalways(Predicate<DataType> predicate)Creates aDataTypeFilterFunctionthat always returns the givenpredicate.@NonNull Predicate<DataType>getTypeFilter(@NonNull PermissionHolder.Identifier holderIdentifier)Gets theDataTypeFilterpredicate for the givenholder identifier.
-
-
-
Field Detail
-
KEY
static final OptionKey<DataTypeFilterFunction> KEY
TheOptionKeyforDataTypeFilterFunction.
-
-
Method Detail
-
always
static DataTypeFilterFunction always(Predicate<DataType> predicate)
Creates aDataTypeFilterFunctionthat always returns the givenpredicate.- Parameters:
predicate- the predicate- Returns:
- the data type filter function
-
getTypeFilter
@NonNull Predicate<DataType> getTypeFilter(@NonNull PermissionHolder.Identifier holderIdentifier)
Gets theDataTypeFilterpredicate for the givenholder identifier.- Parameters:
holderIdentifier- the holder identifier- Returns:
- the predicate to use
-
-