Class UnitsAnnotatedTypeFactory

All Implemented Interfaces:
AnnotationProvider

public class UnitsAnnotatedTypeFactory extends BaseAnnotatedTypeFactory
Annotated type factory for the Units Checker.

Handles multiple names for the same unit, with different prefixes, e.g. @kg is the same as @g(Prefix.kilo).

Supports relations between units. If m is a variable of type "@m" and s is a variable of type "@s", the division m / s is automatically annotated as "@mPERs", the correct unit for the result.