Interface Keys
@Internal
public interface Keys
A reusable key set for known object keys.
- Since:
- 3.1
- Author:
- Denis Stepanov
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final intReturned byindexOf(String)when a key is unknown. -
Method Summary
Modifier and TypeMethodDescriptiondefault booleanWhether key matching should be case-insensitive.static KeysCreate a key set for the supplied keys.static KeysCreate a key set for the supplied keys.static KeysCreate a key set for the supplied keys.static KeysCreate a key set for the supplied keys.static KeyscreateWithMetadata(KeyDescriptor... keys) Create a key set with metadata available to backend-specific key providers.static KeyscreateWithMetadata(KeyDescriptor[] keys, boolean caseInsensitive) Create a key set with metadata available to backend-specific key providers.static KeyscreateWithMetadata(List<KeyDescriptor> keys) Create a key set with metadata available to backend-specific key providers.static KeyscreateWithMetadata(List<KeyDescriptor> keys, boolean caseInsensitive) Create a key set with metadata available to backend-specific key providers.intFind the index of the supplied key.
-
Field Details
-
UNKNOWN_KEY
-
-
Method Details
-
create
-
create
-
create
-
create
-
createWithMetadata
Create a key set with metadata available to backend-specific key providers.- Parameters:
keys- The key descriptors- Returns:
- The key set
- Since:
- 3.2
-
createWithMetadata
Create a key set with metadata available to backend-specific key providers.- Parameters:
keys- The key descriptorscaseInsensitive- Whether key matching should be case-insensitive- Returns:
- The key set
- Since:
- 3.2
-
createWithMetadata
Create a key set with metadata available to backend-specific key providers.- Parameters:
keys- The key descriptors- Returns:
- The key set
- Since:
- 3.2
-
createWithMetadata
Create a key set with metadata available to backend-specific key providers.- Parameters:
keys- The key descriptorscaseInsensitive- Whether key matching should be case-insensitive- Returns:
- The key set
- Since:
- 3.2
-
indexOf
Find the index of the supplied key.- Parameters:
key- The key- Returns:
- The key index, or
UNKNOWN_KEYif no key matches
-
caseInsensitive
default boolean caseInsensitive()Whether key matching should be case-insensitive.- Returns:
- True if key matching should ignore case
-