📄 orbtypecomponentimpl.java
字号:
/* * @(#)ORBTypeComponentImpl.java 1.21 05/11/17 * * Copyright 2006 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */package com.sun.corba.se.impl.ior.iiop;import org.omg.IOP.TAG_ORB_TYPE ;import com.sun.corba.se.spi.ior.TaggedComponentBase ;import com.sun.corba.se.spi.ior.iiop.ORBTypeComponent ;import org.omg.CORBA_2_3.portable.OutputStream ;/** * @author Ken Cavanaugh */public class ORBTypeComponentImpl extends TaggedComponentBase implements ORBTypeComponent{ private int ORBType; public boolean equals( Object obj ) { if (!(obj instanceof ORBTypeComponentImpl)) return false ; ORBTypeComponentImpl other = (ORBTypeComponentImpl)obj ; return ORBType == other.ORBType ; } public int hashCode() { return ORBType ; } public String toString() { return "ORBTypeComponentImpl[ORBType=" + ORBType + "]" ; } public ORBTypeComponentImpl(int ORBType) { this.ORBType = ORBType ; } public int getId() { return TAG_ORB_TYPE.value ; // 0 in CORBA 2.3.1 13.6.3 } public int getORBType() { return ORBType ; } public void writeContents(OutputStream os) { os.write_ulong( ORBType ) ; }}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -