T - the option typepublic interface OptionKey<T>
QueryOptions.
It is intended that OptionKeys are created and defined as follows.
public static final OptionKey<String> SPECIAL_OPTION = OptionKey.of("special", String.class);
| Modifier and Type | Method and Description |
|---|---|
@NonNull String |
name()
Gets a name describing the key type.
|
static <T> @NonNull OptionKey<T> |
of(@NonNull String name,
@NonNull Class<T> type)
Creates a new
NodeMetadataKey for the given name and type. |
@NonNull Class<T> |
type()
Gets the type of the key
|
static <T> @NonNull OptionKey<T> of(@NonNull String name, @NonNull Class<T> type)
NodeMetadataKey for the given name and type.
Note that the returned key implements object reference equality.
T - the type parametername - the nametype - the type@NonNull String name()