public interface Content
Used for the conversion of point values.
The decode(org.rvpf.base.value.PointValue)
/encode(org.rvpf.base.value.PointValue)
methods deal with the physical
representation of the values, taking into account persistence constraints.
The conversion is not always symetric as the goal is to be lenient on input,
but consistent on output.
The normalize(org.rvpf.base.value.PointValue)
/denormalize(org.rvpf.base.value.NormalizedValue)
methods deal with the logical
representation of the values (units conversion).
Modifier and Type | Method and Description |
---|---|
Serializable |
decode(PointValue pointValue)
Decodes the value of a point value.
|
Serializable |
denormalize(NormalizedValue normalizedValue)
Denormalizes the value of a point value.
|
Serializable |
encode(PointValue pointValue)
Encodes the value of a point value.
|
Content |
getInstance(Point point)
Gets an appropriate instance of this content for the point.
|
Serializable |
normalize(PointValue pointValue)
Normalizes the value of a point value.
|
@Nullable @CheckReturnValue Serializable decode(@Nonnull PointValue pointValue)
Converts from an external representation to an internal representation.
pointValue
- The point value associated with the value to decode.@Nullable @CheckReturnValue Serializable denormalize(@Nonnull NormalizedValue normalizedValue)
Converts from an internal unit to an external unit.
normalizedValue
- The point value associated with the value to be
denormalized.@Nullable @CheckReturnValue Serializable encode(@Nonnull PointValue pointValue)
Converts from an internal representation to an external representation.
pointValue
- The point value associated with the value to encode.@Nullable @CheckReturnValue Content getInstance(@Nonnull Point point)
point
- The point.@Nullable @CheckReturnValue Serializable normalize(@Nonnull PointValue pointValue)
Converts from an external unit to an internal unit.
pointValue
- The point value associated with the value to be
normalized.Copyright © 2003-2019 Serge Brisson. All Rights Reserved.