Interface Publishers.MapOrSupplyEmpty<T,​R>

  • Type Parameters:
    T - The next type
    R - The mapped to type
    Enclosing class:
    Publishers

    public static interface Publishers.MapOrSupplyEmpty<T,​R>
    Maps the next result or supplies an empty result.
    Since:
    2.5.0
    • Method Detail

      • map

        @NonNull
        R map​(@NonNull
              T result)
        Maps next result.
        Parameters:
        result - The next value.
        Returns:
        The mapped value.
      • supplyEmpty

        @NonNull
        R supplyEmpty()
        Supplies an empty value if there is no next value.
        Returns:
        The result.