FileDocCategorySizeDatePackage
ObjectIdImpl.javaAPI DocJava SE 5 API1033Fri Aug 26 14:54:22 BST 2005com.sun.corba.se.impl.ior

ObjectIdImpl

public final class ObjectIdImpl extends Object implements ObjectId
author

Fields Summary
private byte[]
id
Constructors Summary
public ObjectIdImpl(byte[] id)

	this.id = id ;
    
Methods Summary
public booleanequals(java.lang.Object obj)

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

	ObjectIdImpl other = (ObjectIdImpl)obj ;

	return Arrays.equals( this.id, other.id ) ;
    
public byte[]getId()

	return id ;
    
public inthashCode()

	int result = 17 ;
	for (int ctr=0; ctr<id.length; ctr++)
	    result = 37*result + id[ctr] ;
	return result ;
    
public voidwrite(org.omg.CORBA_2_3.portable.OutputStream os)

	os.write_long( id.length ) ;
	os.write_octet_array( id, 0, id.length ) ;