⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 numberhelper.java

📁 Java分布式应用程序设计 一书的源代码
💻 JAVA
字号:
package Demo3.DemoInterface3Package;

/**
 * <ul>
 * <li> <b>IDL Source</b>    "Demo3.idl"
 * <li> <b>IDL Name</b>      ::Demo3::DemoInterface3::Number
 * <li> <b>Repository Id</b> IDL:Demo3/DemoInterface3/Number:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * typedef short Number;
 * </pre>
 */
public final class NumberHelper {
  private static org.omg.CORBA.TypeCode _type;
  private static boolean _initializing;

  private static org.omg.CORBA.ORB _orb () {
    return org.omg.CORBA.ORB.init();
  }

  public static short read (final org.omg.CORBA.portable.InputStream _input) {
    short result;
    result = _input.read_short();
    return result;
  }

  public static void write (final org.omg.CORBA.portable.OutputStream _output, final short _vis_value) {
    _output.write_short((short)_vis_value);
  }

  public static void insert (final org.omg.CORBA.Any any, final short _vis_value) {
    any.type(Demo3.DemoInterface3Package.NumberHelper.type());
    any.insert_short((short)_vis_value);
  }

  public static short extract (final org.omg.CORBA.Any any) {
    short _vis_value;
    _vis_value = any.extract_short();

    return _vis_value;
  }

  public static org.omg.CORBA.TypeCode type () {
    if (_type == null) {
      synchronized (org.omg.CORBA.TypeCode.class) {
        if (_type == null) {
          org.omg.CORBA.TypeCode originalType = _orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_short);
          _type = _orb().create_alias_tc(id(), "Number", originalType);
        }
      }
    }
    return _type;
  }

  public static java.lang.String id () {
    return "IDL:Demo3/DemoInterface3/Number:1.0";
  }
}

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -