static public boolean isCompatibleWithExceptions ( String unitString1 , String unitString2 ) throws UnitException { UnitFormat format = UnitFormatManager . instance ( ) ; Unit uu1 = format . parse ( unitString1 ) ; Unit uu2 = format . parse ( unitString2 ) ; return uu1 . isCompatible ( uu2 ) ; }
Return true if unitString1 is convertible to unitString2