Class EnumFormatter<E extends Enum<E>>
java.lang.Object
aQute.bnd.build.model.conversions.EnumFormatter<E>
- Type Parameters:
E
-
Formats an enum type. Outputs
null
when the value of the enum is
equal to a default value.-
Field Summary
Fields -
Constructor Summary
Constructors -
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.
-
Field Details
-
defaultValue
-
-
Constructor Details
-
EnumFormatter
-
-
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
-