Enum Class 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.
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum Constants -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionorg.reactivestreams.Publisher
<Object> apply
(MaybeSource<Object> t) Apply some calculation to the input value and return some other value.static <T> Function
<MaybeSource<T>, org.reactivestreams.Publisher<T>> instance()
static MaybeToPublisher
Returns the enum constant of this class with the specified name.static MaybeToPublisher[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
INSTANCE
-
-
Constructor Details
-
MaybeToPublisher
private MaybeToPublisher()
-
-
Method Details
-
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
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 nameNullPointerException
- if the argument is null
-
instance
-
apply
Description copied from interface:Function
Apply some calculation to the input value and return some other value.- Specified by:
apply
in interfaceFunction<MaybeSource<Object>,
org.reactivestreams.Publisher<Object>> - Parameters:
t
- the input value- Returns:
- the output value
-