@FunctionalInterface public interface WireKey
| Modifier and Type | Method and Description |
|---|---|
static boolean |
checkKeys(@NotNull WireKey[] keys)
Checks if the provided array of WireKey objects have unique codes.
|
default int |
code()
Calculates the code of the WireKey based on its name.
|
default boolean |
contentEquals(@NotNull CharSequence c)
Checks if the provided CharSequence content matches the string representation
of this WireKey.
|
default @Nullable Object |
defaultValue()
Retrieves the default value associated with this WireKey.
|
@NotNull CharSequence |
name()
Retrieves the name of the WireKey.
|
static int |
toCode(@NotNull CharSequence cs)
Converts the provided CharSequence into a code.
|
default Type |
type()
Determines the type of the WireKey based on its default value.
|
static boolean checkKeys(@NotNull
@NotNull WireKey[] keys)
keys - An array of WireKey objects to check.AssertionError - if two or more keys have the same code.static int toCode(@NotNull
@NotNull CharSequence cs)
cs - CharSequence to convert.@NotNull @NotNull CharSequence name()
default int code()
toCode(CharSequence) method.default Type type()
@Nullable default @Nullable Object defaultValue()
default boolean contentEquals(@NotNull
@NotNull CharSequence c)
c - CharSequence to compare with.Copyright © 2024. All rights reserved.