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

📄 longlisthelper.java

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

/**
 * <ul>
 * <li> <b>IDL Source</b>    "SequenceDemo.idl"
 * <li> <b>IDL Name</b>      ::SuquenceDemo::DemoInterface::longList
 * <li> <b>Repository Id</b> IDL:SuquenceDemo/DemoInterface/longList:1.0
 * </ul>
 * <b>IDL definition:</b>
 * <pre>
 * typedef sequence&ltlong&gt longList;
 * </pre>
 */
public final class longListHelper {
  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 int[] read (final org.omg.CORBA.portable.InputStream _input) {
    int[] result;
    final int $length3 = _input.read_long();
    result = new int[$length3];
    _input.read_long_array(result, 0, $length3);
    return result;
  }

  public static void write (final org.omg.CORBA.portable.OutputStream _output, final int[] _vis_value) {
    _output.write_long(_vis_value.length);
    _output.write_long_array(_vis_value, 0, _vis_value.length);
  }

  public static void insert (final org.omg.CORBA.Any any, final int[] _vis_value) {
    any.type(SuquenceDemo.DemoInterfacePackage.longListHelper.type());
    any.insert_Streamable(new SuquenceDemo.DemoInterfacePackage.longListHolder(_vis_value));
  }

  public static int[] extract (final org.omg.CORBA.Any any) {
    int[] _vis_value;
    if (any instanceof com.inprise.vbroker.CORBA.Any) {
      SuquenceDemo.DemoInterfacePackage.longListHolder _vis_holder = new SuquenceDemo.DemoInterfacePackage.longListHolder();
      ((com.inprise.vbroker.CORBA.Any)any).extract_Streamable(_vis_holder);
      _vis_value = _vis_holder.value;
    } else {
      _vis_value = SuquenceDemo.DemoInterfacePackage.longListHelper.read(any.create_input_stream());
    }
    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().create_sequence_tc(0, _orb().get_primitive_tc(org.omg.CORBA.TCKind.tk_long));
          _type = _orb().create_alias_tc(id(), "longList", originalType);
        }
      }
    }
    return _type;
  }

  public static java.lang.String id () {
    return "IDL:SuquenceDemo/DemoInterface/longList:1.0";
  }
}

⌨️ 快捷键说明

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