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 Detail

      • of

        @NotNull
        static <T> @NotNull KeyedValue<T> of​(@NotNull
                                             @NotNull Key key,
                                             @NotNull
                                             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

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