本文整理汇总了Java中gnu.CORBA.typecodes.FixedTypeCode类的典型用法代码示例。如果您正苦于以下问题:Java FixedTypeCode类的具体用法?Java FixedTypeCode怎么用?Java FixedTypeCode使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
FixedTypeCode类属于gnu.CORBA.typecodes包,在下文中一共展示了FixedTypeCode类的2个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: create_fixed_tc
点赞 1
import gnu.CORBA.typecodes.FixedTypeCode; //导入依赖的package包/类
/**
* Creates a TypeCode object for CORBA <code>fixed</code> that is
* mapped to java {@link java.math.BigDecimal}.
*
* @param digits the number of digits in that <code>fixed</code>.
* @param scale the number of digits after the decimal point.
*
* @return the corresponding TypeCode.
*/
public TypeCode create_fixed_tc(short digits, short scale)
{
FixedTypeCode r = new FixedTypeCode();
r.setDigits(digits);
r.setScale(scale);
return r;
}
开发者ID:vilie,
项目名称:javify,
代码行数:17,
代码来源:ORB.java
示例2: _type
点赞 1
import gnu.CORBA.typecodes.FixedTypeCode; //导入依赖的package包/类
/**
* Returns the TypeCode, corresponding the CORBA type that is stored
* using this holder. The scale and digits are set corresponding
* the scale and used digits of the value that is currently stored
* or left with default value 0 if the value is not set.
*/
public TypeCode _type()
{
return new FixedTypeCode(value);
}
开发者ID:vilie,
项目名称:javify,
代码行数:11,
代码来源:FixedHolder.java