public boolean equals(Object obj){
  if ((obj != null) && (obj instanceof BinaryRefAddr)) {
    BinaryRefAddr target=(BinaryRefAddr)obj;
    if (addrType.compareTo(target.addrType) == 0) {
      if (buf == null && target.buf == null)       return true;
      if (buf == null || target.buf == null || buf.length != target.buf.length)       return false;
      for (int i=0; i < buf.length; i++)       if (buf[i] != target.buf[i])       return false;
      return true;
    }
  }
  return false;
}

public boolean equals ( Object obj ) { if ( ( obj != null ) && ( obj instanceof BinaryRefAddr ) ) { BinaryRefAddr target = ( BinaryRefAddr ) obj ; if ( addrType . compareTo ( target . addrType ) == 0 ) { if ( buf == null && target . buf == null ) return true ; if ( buf == null || target . buf == null || buf . length != target . buf . length ) return false ; for ( int i = 0 ; i < buf . length ; i ++ ) if ( buf [ i ] != target . buf [ i ] ) return false ; return true ; } } return false ; }
determines whether obj is equal to this address . it is equal if it contains the same address type and their contents are byte - wise equivalent .
