本文整理汇总了Java中javax.measure.Unit.transform方法的典型用法代码示例。如果您正苦于以下问题:Java Unit.transform方法的具体用法?Java Unit.transform怎么用?Java Unit.transform使用的例子?那么恭喜您, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类javax.measure.Unit
的用法示例。
在下文中一共展示了Unit.transform方法的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: convertUnit
import javax.measure.Unit; //导入方法依赖的package包/类
public Unit<?> convertUnit(UnitDefinition unitDefinition) {
Unit<?> resultUnit = new ProductUnit();
for (org.sbml.jsbml.Unit sbmlUnit : unitDefinition.getListOfUnits()) {
Unit unitComponent = getUnitForKind(sbmlUnit.getKind());
unitComponent = unitComponent.transform(
UnitPrefixes.getUnitPrefixFromScale(sbmlUnit.getScale()).getCorrespondingConverter());
unitComponent = unitComponent.pow((int) sbmlUnit.getExponent());
unitComponent = unitComponent.multiply(sbmlUnit.getMultiplier());
resultUnit = resultUnit.multiply(unitComponent);
}
logger.debug("Parsed unit {},", resultUnit.toString());
return resultUnit;
}
示例2: iLanji
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* iLanji
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>18</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e18)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> iLanji(Unit<Q> unit) {
return unit.transform(E18);
}
示例3: nooRu
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* nooRu
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>2</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(100)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> nooRu(Unit<Q> unit) {
return unit.transform(E2);
}
示例4: aayiram
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* aayiram
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>3</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e3)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> aayiram(Unit<Q> unit) {
return unit.transform(E3);
}
示例5: ARAWB
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* अरब (Arawb)
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>9</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e9)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> ARAWB(Unit<Q> unit) {
return unit.transform(E9);
}
示例6: LAKH
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* लाख (Lakh)
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>5</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e5)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> LAKH(Unit<Q> unit) {
return unit.transform(E5);
}
示例7: veLLam
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* veLLam
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>20</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e20)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> veLLam(Unit<Q> unit) {
return unit.transform(E20);
}
示例8: DAS
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* दस (Das)
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>1</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(10)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> DAS(Unit<Q> unit) {
return unit.transform(E1);
}
示例9: aambal
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* aambal
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>21</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e21)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> aambal(Unit<Q> unit) {
return unit.transform(E21);
}
示例10: patthu
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* patthu
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>1</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(10)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> patthu(Unit<Q> unit) {
return unit.transform(E1);
}
示例11: MAHASHANKH
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* महाशंख (Mahashankh)
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>19</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e19)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> MAHASHANKH(Unit<Q> unit) {
return unit.transform(E19);
}
示例12: SAHASR
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* सहस्र (Sahasr)
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>3</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e3)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> SAHASR(Unit<Q> unit) {
return unit.transform(E3);
}
示例13: thoLLunn
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* thoLLunn
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>9</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e9)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> thoLLunn(Unit<Q> unit) {
return unit.transform(E9);
}
示例14: neLai
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* neLai
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>15</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e15)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> neLai(Unit<Q> unit) {
return unit.transform(E15);
}
示例15: SHANKH
import javax.measure.Unit; //导入方法依赖的package包/类
/**
* <p>
* शंख (Shankh)
* </p>
* Returns the specified unit multiplied by the factor
* <code>10<sup>17</sup></code>
*
* @param unit
* any unit.
* @return <code>unit.times(1e17)</code>.
*/
public static final <Q extends Quantity<Q>> Unit<Q> SHANKH(Unit<Q> unit) {
return unit.transform(E17);
}