- Enclosing class:
- UnitsData
public static class UnitsData.CategoriesSink
extends UResource.Sink
A Resource Sink that collects information from `unitQuantities` in the
`units` resource to provide key->value lookups from base unit to
category, as well as preserving ordering information for these
categories. See `units.txt`.
For example: "kilogram" -> "mass", "meter-per-second" -> "speed".
In Java unitQuantity values are collected in order into an ArrayList,
while unitQuantity key-to-index lookups are handled with a HashMap.