本文整理了Java中org.omg.CORBA.Any.extract_float()
方法的一些代码示例,展示了Any.extract_float()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.extract_float()
方法的具体详情如下:
包路径:org.omg.CORBA.Any
类名称:Any
方法名:extract_float
暂无
代码示例来源:origin: org.jacorb/jacorb
public float get_float() throws TypeMismatch
{
checkDestroyed ();
org.omg.CORBA.Any any = getRepresentation();
try
{
return any.extract_float();
}
catch( org.omg.CORBA.BAD_OPERATION b )
{
throw new TypeMismatch();
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
public float get_float()
throws org.omg.DynamicAny.DynAnyPackage.TypeMismatch,
org.omg.DynamicAny.DynAnyPackage.InvalidValue
{
if (status == STATUS_DESTROYED) {
throw wrapper.dynAnyDestroyed() ;
}
if (any.type().kind().value() != TCKind._tk_float)
throw new TypeMismatch();
return any.extract_float();
}
代码示例来源:origin: apache/cxf
break;
case TCKind._tk_float:
Float f = any.extract_float();
if (f.equals(Float.NEGATIVE_INFINITY)) {
data = "-INF";
代码示例来源:origin: org.jacorb/jacorb
break;
case org.omg.CORBA.TCKind._tk_float:
sb.append( c.value.extract_float() );
break;
case org.omg.CORBA.TCKind._tk_octet:
代码示例来源:origin: org.jacorb/jacorb
return new Integer(any.extract_ulong());
case TCKind._tk_float:
return new Float(any.extract_float());
case TCKind._tk_double:
return new Double(any.extract_double());
代码示例来源:origin: org.apache.yoko/yoko-core
value_ = new Float(any.extract_float());
break;
代码示例来源:origin: apache/cxf
break;
case TCKind._tk_float:
primitive.setValue(Float.valueOf(a.extract_float()));
break;
case TCKind._tk_double:
代码示例来源:origin: org.jacorb/jacorb-services
private static void extractIntoEvaluationResult(EvaluationResult result, Any any)
{
switch (any.type().kind().value()) {
case TCKind._tk_boolean:
result.setBool(any.extract_boolean());
break;
case TCKind._tk_string:
result.setString(any.extract_string());
break;
case TCKind._tk_long:
result.setLong(any.extract_long());
break;
case TCKind._tk_short:
result.setLong(any.extract_short());
break;
case TCKind._tk_ulonglong:
result.setLongLong(any.extract_ulonglong());
break;
case TCKind._tk_float:
result.setFloat(any.extract_float());
break;
case TCKind._tk_double:
result.setDouble(any.extract_double());
break;
default:
result.setAny(any);
break;
}
}
}
代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb
return (extract_ulong() == otherAny.extract_ulong());
case TCKind._tk_float:
return (extract_float() == otherAny.extract_float());
case TCKind._tk_double:
return (extract_double() == otherAny.extract_double());
代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec
return (extract_ulong() == otherAny.extract_ulong());
case TCKind._tk_float :
return (extract_float() == otherAny.extract_float());
case TCKind._tk_double :
return (extract_double() == otherAny.extract_double());
代码示例来源:origin: jboss/jboss-javaee-specs
return (extract_ulong() == otherAny.extract_ulong());
case TCKind._tk_float :
return (extract_float() == otherAny.extract_float());
case TCKind._tk_double :
return (extract_double() == otherAny.extract_double());
代码示例来源:origin: org.apache.yoko/yoko-core
buf[index] = any.extract_float();
break;
代码示例来源:origin: org.jacorb/jacorb
return extract_float() == other.extract_float();
内容来源于网络,如有侵权,请联系作者删除!