001 /***** Copyright (c) 1999 Object Management Group. Unlimited rights to 002 duplicate and use this code are hereby granted provided that this 003 copyright notice is included. 004 *****/ 005 006 package org.omg.CORBA; 007 008 final public class IntHolder implements org.omg.CORBA.portable.Streamable { 009 010 public int value; 011 012 public IntHolder() { 013 } 014 015 public IntHolder(int initial) { 016 value = initial; 017 } 018 019 public void _read(org.omg.CORBA.portable.InputStream is) { 020 value = is.read_long(); 021 } 022 023 public void _write(org.omg.CORBA.portable.OutputStream os) { 024 os.write_long(value); 025 } 026 027 public org.omg.CORBA.TypeCode _type() { 028 return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_long); 029 } 030 031 }