LongHolder.java :  » Collaboration » JacORB » org » omg » CORBA » Java Open Source

Java Open Source » Collaboration » JacORB 
JacORB » org » omg » CORBA » LongHolder.java
/***** Copyright (c) 1999 Object Management Group. Unlimited rights to 
       duplicate and use this code are hereby granted provided that this 
       copyright notice is included.
*****/

package org.omg.CORBA;

final public class LongHolder implements org.omg.CORBA.portable.Streamable {

    public long value;

    public LongHolder() {
    }

    public LongHolder(long initial) {
        value = initial;
    }

    public void _read(org.omg.CORBA.portable.InputStream is) {
        value = is.read_longlong();
    }

    public void _write(org.omg.CORBA.portable.OutputStream os) {
        os.write_longlong(value);
    }

    public org.omg.CORBA.TypeCode _type() {
        return org.omg.CORBA.ORB.init().get_primitive_tc(TCKind.tk_longlong);
    }

}
java2s.com  | Contact Us | Privacy Policy
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.