Enum ESingleResolvedAttachmentCollector
- java.lang.Object
-
- java.lang.Enum<ESingleResolvedAttachmentCollector>
-
- de.xima.fc.workflow.processor.logic.execution.ESingleResolvedAttachmentCollector
-
- All Implemented Interfaces:
Serializable
,Comparable<ESingleResolvedAttachmentCollector>
,Collector<IResolvedAttachmentItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,Optional<IResolvedAttachment>>
public enum ESingleResolvedAttachmentCollector extends Enum<ESingleResolvedAttachmentCollector> implements Collector<IResolvedAttachmentItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,Optional<IResolvedAttachment>>
ACollector
forIResolvedAttachmentList#collectResult
that returns the first resolved attachment, if any.- Since:
- 8.1.0
- Author:
- XIMA MEDIA GmbH
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface java.util.stream.Collector
Collector.Characteristics
-
-
Enum Constant Summary
Enum Constants Enum Constant Description INSTANCE
The immutable instance of the collector
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description BiConsumer<org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,IResolvedAttachmentItem>
accumulator()
Set<Collector.Characteristics>
characteristics()
BinaryOperator<org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>>
combiner()
Function<org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,Optional<IResolvedAttachment>>
finisher()
Supplier<org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>>
supplier()
static ESingleResolvedAttachmentCollector
valueOf(String name)
Returns the enum constant of this type with the specified name.static ESingleResolvedAttachmentCollector[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ESingleResolvedAttachmentCollector INSTANCE
The immutable instance of the collector
-
-
Method Detail
-
values
public static ESingleResolvedAttachmentCollector[] 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 (ESingleResolvedAttachmentCollector c : ESingleResolvedAttachmentCollector.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ESingleResolvedAttachmentCollector valueOf(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:
IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is null
-
accumulator
public BiConsumer<org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,IResolvedAttachmentItem> accumulator()
- Specified by:
accumulator
in interfaceCollector<IResolvedAttachmentItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,Optional<IResolvedAttachment>>
-
characteristics
public Set<Collector.Characteristics> characteristics()
- Specified by:
characteristics
in interfaceCollector<IResolvedAttachmentItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,Optional<IResolvedAttachment>>
-
combiner
public BinaryOperator<org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>> combiner()
- Specified by:
combiner
in interfaceCollector<IResolvedAttachmentItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,Optional<IResolvedAttachment>>
-
finisher
public Function<org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,Optional<IResolvedAttachment>> finisher()
- Specified by:
finisher
in interfaceCollector<IResolvedAttachmentItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,Optional<IResolvedAttachment>>
-
supplier
public Supplier<org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>> supplier()
- Specified by:
supplier
in interfaceCollector<IResolvedAttachmentItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedAttachment>,Optional<IResolvedAttachment>>
-
-