Enum ReadOnlyStringMapResolver.LoopMethod
- java.lang.Object
-
- java.lang.Enum<ReadOnlyStringMapResolver.LoopMethod>
-
- org.apache.logging.log4j.layout.template.json.resolver.ReadOnlyStringMapResolver.LoopMethod
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<ReadOnlyStringMapResolver.LoopMethod>
,TriConsumer<java.lang.String,java.lang.Object,ReadOnlyStringMapResolver.LoopContext>
- Enclosing class:
- ReadOnlyStringMapResolver
private static enum ReadOnlyStringMapResolver.LoopMethod extends java.lang.Enum<ReadOnlyStringMapResolver.LoopMethod> implements TriConsumer<java.lang.String,java.lang.Object,ReadOnlyStringMapResolver.LoopContext>
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
-
Constructor Summary
Constructors Modifier Constructor Description private
LoopMethod()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description void
accept(java.lang.String key, java.lang.Object value, ReadOnlyStringMapResolver.LoopContext loopContext)
Performs the operation given the specified arguments.static ReadOnlyStringMapResolver.LoopMethod
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static ReadOnlyStringMapResolver.LoopMethod[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ReadOnlyStringMapResolver.LoopMethod INSTANCE
-
-
Method Detail
-
values
public static ReadOnlyStringMapResolver.LoopMethod[] 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 (ReadOnlyStringMapResolver.LoopMethod c : ReadOnlyStringMapResolver.LoopMethod.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ReadOnlyStringMapResolver.LoopMethod 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
-
accept
public void accept(java.lang.String key, java.lang.Object value, ReadOnlyStringMapResolver.LoopContext loopContext)
Description copied from interface:TriConsumer
Performs the operation given the specified arguments.- Specified by:
accept
in interfaceTriConsumer<java.lang.String,java.lang.Object,ReadOnlyStringMapResolver.LoopContext>
- Parameters:
key
- the first input argumentvalue
- the second input argumentloopContext
- the third input argument
-
-