-
Nested Class Summary
Nested Classes
-
Optional Element Summary
Optional Elements
com.raynigon.unit.api.core.annotation.QuantityShape
Serialize the Quantity as String
Class<? extends com.raynigon.unit.api.core.units.general.IUnit<?>>
Specifies the unit in which the Quantity is serialized/deserialized
Class<? extends com.raynigon.unit.api.core.units.general.IUnit<?>>
AliasFor(value="unit") Specifies the unit in which the Quantity is serialized/deserialized
-
Element Details
-
value
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
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
-
shape
com.raynigon.unit.api.core.annotation.QuantityShape shape
Serialize the Quantity as String
- Returns:
- the shape which should be used for serialization/deserialization
- Default:
- NUMBER