Package hu.akarnokd.rxjava3.util
Enum BiFunctionSecondIdentity
- java.lang.Object
-
- java.lang.Enum<BiFunctionSecondIdentity>
-
- hu.akarnokd.rxjava3.util.BiFunctionSecondIdentity
-
- All Implemented Interfaces:
BiFunction<java.lang.Object,java.lang.Object,java.lang.Object>,java.io.Serializable,java.lang.Comparable<BiFunctionSecondIdentity>
public enum BiFunctionSecondIdentity extends java.lang.Enum<BiFunctionSecondIdentity> implements BiFunction<java.lang.Object,java.lang.Object,java.lang.Object>
A BiFunction that returns its second parameter; useinstance()to get a correctly typed (shared) instance.- Since:
- 0.16.2
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCEThe singleton instance.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.Objectapply(java.lang.Object t1, java.lang.Object t2)static <T,U>
BiFunction<T,U,U>instance()Returns a correctly typed instance of the enum's singleton instance.static BiFunctionSecondIdentityvalueOf(java.lang.String name)Returns the enum constant of this type with the specified name.static BiFunctionSecondIdentity[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final BiFunctionSecondIdentity INSTANCE
The singleton instance.
-
-
Method Detail
-
values
public static BiFunctionSecondIdentity[] 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 (BiFunctionSecondIdentity c : BiFunctionSecondIdentity.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static BiFunctionSecondIdentity 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,U> BiFunction<T,U,U> instance()
Returns a correctly typed instance of the enum's singleton instance.- Type Parameters:
T- the first input value type.U- the second input and result type- Returns:
- the typed BiFunction (shared) instance.
-
apply
public java.lang.Object apply(java.lang.Object t1, java.lang.Object t2) throws java.lang.Exception- Specified by:
applyin interfaceBiFunction<java.lang.Object,java.lang.Object,java.lang.Object>- Throws:
java.lang.Exception
-
-