public boolean equals(Object obj){
  if (obj == null)   return false;
  if (this == obj)   return true;
  if (getClass() != obj.getClass())   return false;
  CompactByteArray other=(CompactByteArray)obj;
  for (int i=0; i < UNICODECOUNT; i++) {
    if (elementAt((char)i) != other.elementAt((char)i))     return false;
  }
  return true;
}

public boolean equals ( Object obj ) { if ( obj == null ) return false ; if ( this == obj ) return true ; if ( getClass ( ) != obj . getClass ( ) ) return false ; CompactByteArray other = ( CompactByteArray ) obj ; for ( int i = 0 ; i < UNICODECOUNT ; i ++ ) { if ( elementAt ( ( char ) i ) != other . elementAt ( ( char ) i ) ) return false ; } return true ; }
compares the equality of two compact array objects .
