Enum ListAddBiConsumer
- java.lang.Object
-
- java.lang.Enum<ListAddBiConsumer>
-
- io.reactivex.rxjava3.internal.util.ListAddBiConsumer
-
- All Implemented Interfaces:
BiFunction<java.util.List,java.lang.Object,java.util.List>
,java.io.Serializable
,java.lang.Comparable<ListAddBiConsumer>
public enum ListAddBiConsumer extends java.lang.Enum<ListAddBiConsumer> implements BiFunction<java.util.List,java.lang.Object,java.util.List>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
ListAddBiConsumer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List
apply(java.util.List t1, java.lang.Object t2)
Calculate a value based on the input values.static <T> BiFunction<java.util.List<T>,T,java.util.List<T>>
instance()
static ListAddBiConsumer
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ListAddBiConsumer[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ListAddBiConsumer INSTANCE
-
-
Method Detail
-
values
public static ListAddBiConsumer[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (ListAddBiConsumer c : ListAddBiConsumer.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ListAddBiConsumer valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
instance
public static <T> BiFunction<java.util.List<T>,T,java.util.List<T>> instance()
-
apply
public java.util.List apply(java.util.List t1, java.lang.Object t2)
Description copied from interface:BiFunction
Calculate a value based on the input values.- Specified by:
apply
in interfaceBiFunction<java.util.List,java.lang.Object,java.util.List>
- Parameters:
t1
- the first valuet2
- the second value- Returns:
- the result value
-
-