public final class DynamicDataPair<T extends DynamicBuilders.DynamicType>


A pair of DynamicDataKey and its corresponding DynamicDataValue. This is similar to Pair but makes sure key and value have the same generic type parameter.

Summary

Public constructors

Public methods

final @NonNull Pair<@NonNull DynamicDataKey<@NonNull T>, @NonNull DynamicDataBuilders.DynamicDataValue<@NonNull T>>
final @NonNull DynamicDataKey<@NonNull T>

represent a key that other APIs can use to reference values value.

final @NonNull DynamicDataBuilders.DynamicDataValue<@NonNull T>

to use for evaluating references to key.

Public constructors

DynamicDataPair

public <T extends DynamicBuilders.DynamicType> DynamicDataPair(
    @NonNull DynamicDataKey<@NonNull T> key,
    @NonNull DynamicDataBuilders.DynamicDataValue<@NonNull T> value
)

Public methods

getKey

Added in 1.3.0-alpha08
public final @NonNull DynamicDataKey<@NonNull T> getKey()

represent a key that other APIs can use to reference values value.

getValue

Added in 1.3.0-alpha08
public final @NonNull DynamicDataBuilders.DynamicDataValue<@NonNull T> getValue()

to use for evaluating references to key.