Class NumberField
java.lang.Object
org.basepom.mojo.propertyhelper.Field<String,NumberDefinition>
org.basepom.mojo.propertyhelper.fields.NumberField
-
Constructor Summary
ConstructorDescriptionNumberField
(NumberDefinition fieldDefinition, ValueProvider valueProvider, FieldContext fieldContext) -
Method Summary
Modifier and TypeMethodDescriptionstatic NumberField
forTesting
(NumberDefinition numberDefinition, ValueProvider valueProvider) The name of the field.getValue()
The value of the field.void
toString()
Methods inherited from class org.basepom.mojo.propertyhelper.Field
isExposeAsProperty
-
Constructor Details
-
NumberField
public NumberField(NumberDefinition fieldDefinition, ValueProvider valueProvider, FieldContext fieldContext)
-
-
Method Details
-
forTesting
public static NumberField forTesting(NumberDefinition numberDefinition, ValueProvider valueProvider) -
getFieldName
Description copied from class:Field
The name of the field.- Specified by:
getFieldName
in classField<String,
NumberDefinition>
-
getValue
Description copied from class:Field
The value of the field.Optional.empty()
can be returned if the value is not defined.- Specified by:
getValue
in classField<String,
NumberDefinition>
-
increment
-
getNumberValue
-
toString
-