udunits/src/main/java/ucar/units/Dimension.java
public final boolean isDimensionless() {
        for (int i = _factors.length; --i >= 0;) {
            if (!_factors[i].isDimensionless()) {
                return false;
            }
        }
        return true;
    }
public final boolean isDimensionless() {
        for (int i = _factors.length; --i >= 0;) {
            if (!_factors[i].isDimensionless()) {
                return false;
            }
        }
        return true;
    }
public final boolean isDimensionless ( ) { for ( int i = _factors . length ; -- i >= 0 ; ) { if ( ! _factors [ i ] . isDimensionless ( ) ) { return false ; } } return true ; }
Indicates if this dimension is dimensionless. A dimension is
dimensionless if it has no Factor-s or if all Factor-s are, themselves,
dimensionless.

@return <code>true</code> if and only if this dimension is dimensionless.
Indicates if this dimension is dimensionless . A dimension is dimensionless if it has no Factor - s or if all Factor - s are themselves dimensionless .