The ComparableUnit interface contains 3 methods, 2 are merely convenience methods (getSystemConverter() and isSystemUnit()) that are used almost entirely inside Indriya, especially in AbstractUnit or subclasses.
isEquivalentTo() allows to compare two units in a more flexible way, thus it seems beneficial to move that into the API element Unit. The other two methods are best located in AbstractUnit, so ComparableUnitcan be dissolved.
The
ComparableUnit
interface contains 3 methods, 2 are merely convenience methods (getSystemConverter()
andisSystemUnit()
) that are used almost entirely inside Indriya, especially inAbstractUnit
or subclasses.isEquivalentTo()
allows to compare two units in a more flexible way, thus it seems beneficial to move that into the API elementUnit
. The other two methods are best located inAbstractUnit
, soComparableUnit
can be dissolved.