U - A loaded type that the built type is guaranteed to be a subclass of.public static interface DynamicType.Builder.FieldDefinition.Valuable<U> extends DynamicType.Builder.FieldDefinition<U>
DynamicType.Builder.FieldDefinition.Optional<U>, DynamicType.Builder.FieldDefinition.Valuable<U>| Modifier and Type | Method and Description |
|---|---|
DynamicType.Builder.FieldDefinition.Optional<U> |
value(boolean value)
Defines the supplied
boolean value as a default value of the previously defined or matched field. |
DynamicType.Builder.FieldDefinition.Optional<U> |
value(double value)
Defines the supplied
double value as a default value of the previously defined or matched field. |
DynamicType.Builder.FieldDefinition.Optional<U> |
value(float value)
Defines the supplied
float value as a default value of the previously defined or matched field. |
DynamicType.Builder.FieldDefinition.Optional<U> |
value(int value)
Defines the supplied
int value as a default value of the previously defined or matched field. |
DynamicType.Builder.FieldDefinition.Optional<U> |
value(long value)
Defines the supplied
long value as a default value of the previously defined or matched field. |
DynamicType.Builder.FieldDefinition.Optional<U> |
value(String value)
Defines the supplied
String value as a default value of the previously defined or matched field. |
annotateField, annotateField, annotateField, annotateField, attribute, transformDynamicType.Builder.FieldDefinition.Optional<U> value(boolean value)
Defines the supplied boolean value as a default value of the previously defined or matched field. The value can only
be set for numeric fields of type boolean, byte, short, char or int. For non-boolean
fields, the field's value is set to 0 for false or 1 for true.
A default value is set as a constant pool value and can only be set for static fields, Any other value must be set
within a constructor.
value - The value to define as a default value of the defined field.DynamicType.Builder.FieldDefinition.Optional<U> value(int value)
Defines the supplied int value as a default value of the previously defined or matched field. The value can only
be set for numeric fields of type boolean, byte, short, char or int where the
value must be within the numeric type's range. The boolean type is regarded as a numeric type with the possible
values of 0 and 1 representing false and true.
A default value is set as a constant pool value and can only be set for static fields, Any other value must be set
within a constructor.
value - The value to define as a default value of the defined field.DynamicType.Builder.FieldDefinition.Optional<U> value(long value)
Defines the supplied long value as a default value of the previously defined or matched field.
A default value is set as a constant pool value and can only be set for static fields, Any other value must be set
within a constructor.
value - The value to define as a default value of the defined field.DynamicType.Builder.FieldDefinition.Optional<U> value(float value)
Defines the supplied float value as a default value of the previously defined or matched field.
A default value is set as a constant pool value and can only be set for static fields, Any other value must be set
within a constructor.
value - The value to define as a default value of the defined field.DynamicType.Builder.FieldDefinition.Optional<U> value(double value)
Defines the supplied double value as a default value of the previously defined or matched field.
A default value is set as a constant pool value and can only be set for static fields, Any other value must be set
within a constructor.
value - The value to define as a default value of the defined field.DynamicType.Builder.FieldDefinition.Optional<U> value(String value)
Defines the supplied String value as a default value of the previously defined or matched field.
A default value is set as a constant pool value and can only be set for static fields, Any other value must be set
within a constructor.
value - The value to define as a default value of the defined field.Copyright © 2014–2016. All rights reserved.