Class EnumFormatter<E extends Enum<E>>
java.lang.Object
aQute.bnd.build.model.conversions.EnumFormatter<E>
- Type Parameters:
E-
-
Method Summary
Modifier and TypeMethodDescriptionstatic <E extends Enum<E>>
EnumFormatter<E> Construct a new formatter with no default value, i.e.static <E extends Enum<E>>
EnumFormatter<E> Construct a new formatter with the specified default value.
-
Method Details
-
create
Construct a new formatter with no default value, i.e. any non-null value of the enum will print that value.- Parameters:
enumType- The enum type.
-
create
Construct a new formatter with the specified default value.- Parameters:
enumType- The enum type.defaultValue- The default value, which will never be output.
-
convert
-
error
-