org.omg.CORBA.Any.extract_double()方法的使用及代码示例

x33g5p2x  于2022-01-16 转载在 其他  
字(2.9k)|赞(0)|评价(0)|浏览(118)

本文整理了Java中org.omg.CORBA.Any.extract_double()方法的一些代码示例,展示了Any.extract_double()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Any.extract_double()方法的具体详情如下:
包路径:org.omg.CORBA.Any
类名称:Any
方法名:extract_double

Any.extract_double介绍

暂无

代码示例

代码示例来源:origin: org.jacorb/jacorb

public double get_double() throws TypeMismatch
{
 checkDestroyed ();
 org.omg.CORBA.Any any = getRepresentation();
 try
 {
   return any.extract_double();
 }
 catch( org.omg.CORBA.BAD_OPERATION b )
 {
   throw new TypeMismatch();
 }
}

代码示例来源:origin: org.jboss.openjdk-orb/openjdk-orb

public double get_double()
  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_double)
    throw new TypeMismatch();
  return any.extract_double();
}

代码示例来源:origin: apache/cxf

Double d = any.extract_double();
if (d.equals(Double.NEGATIVE_INFINITY)) {
  data = "-INF";

代码示例来源:origin: org.jacorb/jacorb

return new Float(any.extract_float());
case TCKind._tk_double:
return new Double(any.extract_double());
case TCKind._tk_boolean:
return new Boolean(any.extract_boolean());

代码示例来源:origin: org.apache.yoko/yoko-core

value_ = new Double(any.extract_double());
break;

代码示例来源:origin: apache/cxf

break;
case TCKind._tk_double:
  primitive.setValue(Double.valueOf(a.extract_double()));
  break;
case TCKind._tk_string:

代码示例来源: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_float() == otherAny.extract_float());
case TCKind._tk_double:
  return (extract_double() == otherAny.extract_double());
case TCKind._tk_boolean:
  return (extract_boolean() == otherAny.extract_boolean());

代码示例来源:origin: org.jboss.spec.javax.rmi/jboss-rmi-api_1.0_spec

return (extract_float() == otherAny.extract_float());
case TCKind._tk_double :
  return (extract_double() == otherAny.extract_double());
case TCKind._tk_boolean :
  return (extract_boolean() == otherAny.extract_boolean());

代码示例来源:origin: jboss/jboss-javaee-specs

return (extract_float() == otherAny.extract_float());
case TCKind._tk_double :
  return (extract_double() == otherAny.extract_double());
case TCKind._tk_boolean :
  return (extract_boolean() == otherAny.extract_boolean());

代码示例来源:origin: org.jacorb/jacorb

return extract_double() == other.extract_double();

代码示例来源:origin: org.apache.yoko/yoko-core

buf[index] = any.extract_double();
break;

相关文章