public enum CompoundConstructor extends Enum<CompoundConstructor> implements Function<Collection<Format>,Format>
Format.Compound
for combining their sub-formats.Modifier and Type | Method and Description |
---|---|
abstract Format |
apply(Collection<Format> subs)
Returns an instance of the correctly chosen sub-class of
Format.Compound
which corresponds to the combination method represented by the enumeration value. |
static CompoundConstructor |
valueOf(String name)
Returns the enum constant of this type with the specified name.
|
static CompoundConstructor[] |
values()
Returns an array containing the constants of this enum type, in
the order they are declared.
|
public static final CompoundConstructor append
public static final CompoundConstructor block
public static final CompoundConstructor line
public static final CompoundConstructor beside
public static final CompoundConstructor beneath
public static CompoundConstructor[] values()
for (CompoundConstructor c : CompoundConstructor.values()) System.out.println(c);
public static CompoundConstructor valueOf(String name)
name
- the name of the enum constant to be returned.IllegalArgumentException
- if this enum type has no constant with the specified nameNullPointerException
- if the argument is nullpublic abstract Format apply(Collection<Format> subs)
Format.Compound
which corresponds to the combination method represented by the enumeration value.apply
in interface Function<Collection<Format>,Format>
see also the complete user documentation .