Annotation Type JsonUnit
-
@Target({METHOD,FIELD}) @Retention(RUNTIME) public @interface JsonUnit
-
-
Optional Element Summary
Optional Elements Modifier and Type Optional Element Description com.raynigon.unit_api.core.annotation.QuantityShape
shape
Serialize the Quantity as Stringjava.lang.Class<? extends com.raynigon.unit_api.core.units.general.IUnit<?>>
unit
Specifies the unit in which the Quantity is serialized/deserializedjava.lang.Class<? extends com.raynigon.unit_api.core.units.general.IUnit<?>>
value
AliasFor(value="unit") Specifies the unit in which the Quantity is serialized/deserialized
-
-
-
Element Detail
-
value
java.lang.Class<? extends com.raynigon.unit_api.core.units.general.IUnit<?>> value
AliasFor(value="unit") Specifies the unit in which the Quantity is serialized/deserialized- Returns:
- the unit which should be used for serialization/deserialization
- Default:
- com.raynigon.unit_api.jackson.annotation.JsonUnit.NoneUnit.class
-
-
-
unit
java.lang.Class<? extends com.raynigon.unit_api.core.units.general.IUnit<?>> unit
Specifies the unit in which the Quantity is serialized/deserialized- Returns:
- the unit which should be used for serialization/deserialization
- Default:
- com.raynigon.unit_api.jackson.annotation.JsonUnit.NoneUnit.class
-
-