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 ComparableUnit can be dissolved.
The
ComparableUnitinterface contains 3 methods, 2 are merely convenience methods (getSystemConverter()andisSystemUnit()) that are used almost entirely inside Indriya, especially inAbstractUnitor 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, soComparableUnitcan be dissolved.