/* * @(#)CodeSetComponentInfo.java 1.31 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ /* * Licensed Materials - Property of IBM * RMI-IIOP v1.0 * Copyright IBM Corp. 1998 1999 All Rights Reserved * * US Government Users Restricted Rights - Use, duplication or * disclosure restricted by GSA ADP Schedule Contract with IBM Corp. */ package com.sun.corba.se.impl.encoding; import java.util.StringTokenizer; import java.util.ArrayList; import java.util.Arrays; import java.util.List; import java.util.NoSuchElementException; import org.omg.CORBA.INITIALIZE; import org.omg.CORBA.CompletionStatus; import com.sun.corba.se.spi.logging.CORBALogDomains; import com.sun.corba.se.impl.logging.ORBUtilSystemException; public final class CodeSetComponentInfo { /** * CodeSetComponent is part of an IOR multi-component profile. Two * instances constitute a CodeSetComponentInfo (one for char and one * for wchar data) */ public static final class CodeSetComponent { int nativeCodeSet; int[] conversionCodeSets; public boolean equals( Object obj ) { if (this == obj) return true ; if (!(obj instanceof CodeSetComponent)) return false ; CodeSetComponent other = (CodeSetComponent)obj ; return (nativeCodeSet == other.nativeCodeSet) && Arrays.equals( conversionCodeSets, other.conversionCodeSets ) ; } public int hashCode() { int result = nativeCodeSet ; for (int ctr=0; ctr