Package eu.bandm.tools.format
Enum Class CompoundConstructor
- All Implemented Interfaces:
Serializable,Comparable<CompoundConstructor>,java.lang.constant.Constable,Function<Collection<Format>,Format>
public enum CompoundConstructor
extends Enum<CompoundConstructor>
implements Function<Collection<Format>,Format>
The different operators which combine multiple sub-formats into
one compound format.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>> -
Enum Constant Summary
Enum Constants -
Method Summary
Modifier and TypeMethodDescriptionabstract Formatapply(Collection<Format> subs) Service point: returns an instance of the correctly chosen sub-class ofFormat.Compoundwhich corresponds to the combination method represented by the enumeration value.static CompoundConstructorReturns the enum constant of this class with the specified name.static CompoundConstructor[]values()Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
tabular
-
append
-
block
-
line
-
beside
-
beneath
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (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 class has no constant with the specified nameNullPointerException- if the argument is null
-
apply
Service point: returns an instance of the correctly chosen sub-class ofFormat.Compoundwhich corresponds to the combination method represented by the enumeration value. Goes via the factory methods, so it can return a singleton list content or an instance of Empty.- Specified by:
applyin interfaceFunction<Collection<Format>,Format>
-