Enum Class MaybeToPublisher

java.lang.Object
java.lang.Enum<MaybeToPublisher>
io.reactivex.rxjava3.internal.operators.maybe.MaybeToPublisher
All Implemented Interfaces:
Function<MaybeSource<Object>,org.reactivestreams.Publisher<Object>>, Serializable, Comparable<MaybeToPublisher>, Constable

public enum MaybeToPublisher extends Enum<MaybeToPublisher> implements Function<MaybeSource<Object>,org.reactivestreams.Publisher<Object>>
Helper function to merge/concat values of each MaybeSource provided by a Publisher.
  • Enum Constant Details

  • Constructor Details

    • MaybeToPublisher

      private MaybeToPublisher()
  • Method Details

    • values

      public static MaybeToPublisher[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static MaybeToPublisher valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • instance

      public static <T> Function<MaybeSource<T>,org.reactivestreams.Publisher<T>> instance()
    • apply

      public org.reactivestreams.Publisher<Object> apply(MaybeSource<Object> t)
      Description copied from interface: Function
      Apply some calculation to the input value and return some other value.
      Specified by:
      apply in interface Function<MaybeSource<Object>,org.reactivestreams.Publisher<Object>>
      Parameters:
      t - the input value
      Returns:
      the output value