orbtypecomponent.java

来自「java jdk 1.4的源码」· Java 代码 · 共 87 行

JAVA
87
字号
/* * @(#)ORBTypeComponent.java	1.17 03/01/23 * * Copyright 2003 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. *///Source file: J:/ws/serveractivation/src/share/classes/com.sun.corba.se.internal.ior/ORBTypeComponent.javapackage com.sun.corba.se.internal.ior;import org.omg.IOP.TAG_ORB_TYPE ;import com.sun.corba.se.internal.ior.TaggedComponent ;import org.omg.CORBA_2_3.portable.OutputStream ;/** * @author  */public class ORBTypeComponent extends TaggedComponentBase {    private int ORBType;       public boolean equals( Object obj )    {	if (obj == null)	    return false ;	if (!(obj instanceof ORBTypeComponent))	    return false ;	ORBTypeComponent other = (ORBTypeComponent)obj ;	return ORBType == other.ORBType ;    }    public String toString()    {	return "ORBTypeComponent[ORBType=" + ORBType + "]" ;    }    /**     * @param arg0     * @return      * @exception      * @author      * @roseuid 3910984F01AA     */    public ORBTypeComponent(int ORBType)     {	this.ORBType = ORBType ;    }        /**     * @return int     * @exception      * @author      * @roseuid 3910984F01AE     */    public int getId()     {	return TAG_ORB_TYPE.value ; // 0 in CORBA 2.3.1 13.6.3    }        /**     * @return int     * @exception      * @author      * @roseuid 3910984F01AF     */    public int getORBType()     {	return ORBType ;    }        /**     * @param arg0     * @return void     * @exception      * @author      * @roseuid 3910984F01B4     */    public void writeContents(OutputStream os)     {	os.write_ulong( ORBType ) ;    }}

⌨️ 快捷键说明

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