FileDocCategorySizeDatePackage
ORBVersionImpl.javaAPI DocJava SE 5 API1893Fri Aug 26 14:54:28 BST 2005com.sun.corba.se.impl.orb

ORBVersionImpl

public class ORBVersionImpl extends Object implements com.sun.corba.se.spi.orb.ORBVersion

Fields Summary
private byte
orbType
public static final com.sun.corba.se.spi.orb.ORBVersion
FOREIGN
public static final com.sun.corba.se.spi.orb.ORBVersion
OLD
public static final com.sun.corba.se.spi.orb.ORBVersion
NEW
public static final com.sun.corba.se.spi.orb.ORBVersion
JDK1_3_1_01
public static final com.sun.corba.se.spi.orb.ORBVersion
NEWER
public static final com.sun.corba.se.spi.orb.ORBVersion
PEORB
Constructors Summary
public ORBVersionImpl(byte orbType)

	this.orbType = orbType ;
    
Methods Summary
public intcompareTo(java.lang.Object obj)

        // The Comparable interface says that this
        // method throws a ClassCastException if the
        // given object's type prevents it from being
        // compared.
        return getORBType() - ((ORBVersion)obj).getORBType();
    
public booleanequals(java.lang.Object obj)

	if (!(obj instanceof ORBVersion))
	    return false ;

	ORBVersion version = (ORBVersion)obj ;
	return version.getORBType() == orbType ;
    
public bytegetORBType()


      
    
	return orbType ;
    
public inthashCode()

	return orbType ;
    
public booleanlessThan(com.sun.corba.se.spi.orb.ORBVersion version)

        return orbType < version.getORBType();
    
public java.lang.StringtoString()

	return "ORBVersionImpl[" + Byte.toString( orbType ) + "]" ;
    
public voidwrite(org.omg.CORBA.portable.OutputStream os)

	os.write_octet( (byte)orbType ) ;