Enum ESingleResolvedFileCollector
- java.lang.Object
-
- java.lang.Enum<ESingleResolvedFileCollector>
-
- de.xima.fc.workflow.processor.logic.execution.ESingleResolvedFileCollector
-
- All Implemented Interfaces:
Serializable,Comparable<ESingleResolvedFileCollector>,Collector<IResolvedResourceItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,Optional<IResolvedFile>>
public enum ESingleResolvedFileCollector extends Enum<ESingleResolvedFileCollector> implements Collector<IResolvedResourceItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,Optional<IResolvedFile>>
ACollectorforIResolvedFileList#collectResultthat returns the first resolved file, if any.- Since:
- 7.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 INSTANCEThe 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<IResolvedFile>,IResolvedResourceItem>accumulator()Set<Collector.Characteristics>characteristics()BinaryOperator<org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>>combiner()Function<org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,Optional<IResolvedFile>>finisher()Supplier<org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>>supplier()static ESingleResolvedFileCollectorvalueOf(String name)Returns the enum constant of this type with the specified name.static ESingleResolvedFileCollector[]values()Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
INSTANCE
public static final ESingleResolvedFileCollector INSTANCE
The immutable instance of the collector
-
-
Method Detail
-
values
public static ESingleResolvedFileCollector[] 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 (ESingleResolvedFileCollector c : ESingleResolvedFileCollector.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static ESingleResolvedFileCollector 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
-
characteristics
public Set<Collector.Characteristics> characteristics()
- Specified by:
characteristicsin interfaceCollector<IResolvedResourceItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,Optional<IResolvedFile>>
-
supplier
public Supplier<org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>> supplier()
- Specified by:
supplierin interfaceCollector<IResolvedResourceItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,Optional<IResolvedFile>>
-
accumulator
public BiConsumer<org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,IResolvedResourceItem> accumulator()
- Specified by:
accumulatorin interfaceCollector<IResolvedResourceItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,Optional<IResolvedFile>>
-
combiner
public BinaryOperator<org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>> combiner()
- Specified by:
combinerin interfaceCollector<IResolvedResourceItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,Optional<IResolvedFile>>
-
finisher
public Function<org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,Optional<IResolvedFile>> finisher()
- Specified by:
finisherin interfaceCollector<IResolvedResourceItem,org.apache.commons.lang3.mutable.MutableObject<IResolvedFile>,Optional<IResolvedFile>>
-
-