Interface KeyedValue<T>

Type Parameters:
T - the value type
All Superinterfaces:
Keyed

public interface KeyedValue<T>
extends Keyed
A T value with an associated Key.
Since:
4.0.0
  • Method Summary

    Modifier and Type Method Description
    static <T> @NonNull KeyedValue<T> of​(@NonNull Key key, @NonNull T value)
    Creates a link.
    @NonNull T value()
    Gets the value.

    Methods inherited from interface net.kyori.adventure.key.Keyed

    key
  • Method Details

    • of

      static <T> @NonNull KeyedValue<T> of​(@NonNull Key key, @NonNull T value)
      Creates a link.
      Type Parameters:
      T - the value type
      Parameters:
      key - the key
      value - the value
      Returns:
      the keyed
      Since:
      4.0.0
    • value

      @NonNull T value()
      Gets the value.
      Returns:
      the value
      Since:
      4.0.0