Releases: MiSikora/ruler
Releases · MiSikora/ruler
0.4.0
Added
Ruler
class as a central point for distance and length formatting.
- Imperial unit formatter. It allows to display measurements in a imperial-friendly format. For example
105ft 12in
.
0.3.2
Fixed
- Make library JDK 7 compatible.
0.3.1
Fixed
- Make library JDK 7 compatible.
0.3.0
Added
- Add
Distance
(old Length
) formatter for Android.
- Add basic math operators like multiplication and division.
- Add Double factories to
Distance
(old Length
).
Changed
- Swap names of
Distance
and Length
classes.
- Use Long as an underlying
Distance
primitive. It is more suitable for application that have UI interaction and distance of ~975 light years seems sufficient for most day-to-day applications.
0.2.0
Changed
DistanceUnitCoercer
changed to DistanceConverter
.
Distance
constructor is no longer public.
length
in Distance
is no longer public.
meters
and nanometers
properties renamed respectively to metersPart
and nanometersParts
in Length
class.