de.caff.generics

## Interface NamedNullableValue<T>

- All Superinterfaces:
    ITuple2<java.lang.String,T>

      public interface NamedNullableValue<T>
      extends ITuple2<java.lang.String,T>

  A nullable value with a name.
  Since:
    December 25, 2022
  Author:
    Rammi

- - ### Nested Class Summary

    - ### Nested classes/interfaces inherited from interface de.caff.generics.tuple.ITuple2

      `ITuple2.Base<T1,T2>`

  - ### Method Summary

    All Methods Static Methods Instance Methods Abstract Methods Default Methods
    Modifier and Type | Method and Description
    --- | ---
    `default java.lang.String` | `_1()` Get the first element.
    `default T` | `_2()` Get the second element.
    `java.lang.String` | `getName()` Get the name of the named value.
    `T` | `getValue()` Get the value.
    `static <V> NamedNullableValue<V>` | `of(java.lang.String name, V value)` Create a named value.
    `static java.lang.String` | `toString(NamedNullableValue<?> nv)` Default implementation for creating a string representation for a named value.

    - ### Methods inherited from interface de.caff.generics.tuple.ITuple2

      `_21, asBase, concat1, concat2, concat3, concat4, concat5, concat6, concat7, concat8, concatPred1, concatPred2, concatPred3, concatPred4, concatPred5, concatPred6, concatPred7, concatPred8, concatProc1, concatProc2, concatProc3, concatProc4, concatProc5, concatProc6, concatProc7, concatProc8, equals, frozen, frozenNotNull, hash, invoke, sendTo, testBy, toString, toString, view`

- - ### Method Detail

    - #### getName

          @NotNull
          java.lang.String getName()

      Get the name of the named value.
      Returns:
        the name

    - #### getValue

          @Nullable
          T getValue()

      Get the value.
      Returns:
        the value

    - #### _1

          @NotNull
          default java.lang.String _1()

      Description copied from interface: `ITuple2`
      Get the first element.
      Specified by:
        `_1` in interface `ITuple2<java.lang.String,T>`
      Returns:
        first element

    - #### _2

          @Nullable
          default T _2()

      Description copied from interface: `ITuple2`
      Get the second element.
      Specified by:
        `_2` in interface `ITuple2<java.lang.String,T>`
      Returns:
        second element

    - #### of

          @NotNull
          static <V> NamedNullableValue<V> of(@NotNull
                                                       java.lang.String name,
                                                       @Nullable
                                                       V value)

      Create a named value.
      Type Parameters:
        `V` - value type
      Parameters:
        `name` - name
        `value` - value
      Returns:
        named value combination

    - #### toString

          @NotNull
          static java.lang.String toString(@NotNull
                                                    NamedNullableValue<?> nv)

      Default implementation for creating a string representation for a named value.
      Parameters:
        `nv` - named value
      Returns:
        string representation