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

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

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

Any.extract_ushort介绍

暂无

代码示例

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

public MaxHopsPolicy (org.omg.CORBA.Any value)
{
  super();
  max_hops = value.extract_ushort();
}

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

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

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

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

代码示例来源:origin: JacORB/JacORB

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

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

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

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

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

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

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

代码示例来源:origin: JacORB/JacORB

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

代码示例来源:origin: JacORB/JacORB

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

代码示例来源:origin: JacORB/JacORB

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

代码示例来源:origin: JacORB/JacORB

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

代码示例来源:origin: JacORB/JacORB

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

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

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

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

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

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

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

代码示例来源:origin: JacORB/JacORB

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

代码示例来源:origin: JacORB/JacORB

public static short extract (final org.omg.CORBA.Any any)
{
  return any.extract_ushort();
}

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

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

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

public short get_ushort()
  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_ushort)
    throw new TypeMismatch();
  return any.extract_ushort();
}

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

private static boolean compareLabels(org.omg.CORBA.TCKind kind,
    org.omg.CORBA.Any a1, org.omg.CORBA.Any a2) {
  switch (kind.value()) {
  case org.omg.CORBA.TCKind._tk_short:
    return a1.extract_short() == a2.extract_short();
  case org.omg.CORBA.TCKind._tk_ushort:
    return a1.extract_ushort() == a2.extract_ushort();
  case org.omg.CORBA.TCKind._tk_long:
    return a1.extract_long() == a2.extract_long();
  case org.omg.CORBA.TCKind._tk_ulong:
    return a1.extract_ulong() == a2.extract_ulong();
  case org.omg.CORBA.TCKind._tk_longlong:
    return a1.extract_longlong() == a2.extract_longlong();
  case org.omg.CORBA.TCKind._tk_ulonglong:
    return a1.extract_ulonglong() == a2.extract_ulonglong();
  case org.omg.CORBA.TCKind._tk_char:
    return a1.extract_char() == a2.extract_char();
  case org.omg.CORBA.TCKind._tk_boolean:
    return a1.extract_boolean() == a2.extract_boolean();
  case org.omg.CORBA.TCKind._tk_wchar:
    return a1.extract_wchar() == a2.extract_wchar();
  case org.omg.CORBA.TCKind._tk_enum:
    return a1.create_input_stream().read_ulong() == a2
        .create_input_stream().read_ulong();
  default:
    Assert._OB_assert("Unsupported typecode for compare");
  }
  return false;
}

相关文章