public boolean equals(Object obj){
  if (this == obj)   return true;
  if (!(obj instanceof ChannelBinding))   return false;
  ChannelBinding cb=(ChannelBinding)obj;
  if ((initiator != null && cb.initiator == null) || (initiator == null && cb.initiator != null))   return false;
  if (initiator != null && !initiator.equals(cb.initiator))   return false;
  if ((acceptor != null && cb.acceptor == null) || (acceptor == null && cb.acceptor != null))   return false;
  if (acceptor != null && !acceptor.equals(cb.acceptor))   return false;
  return Arrays.equals(appData,cb.appData);
}

public boolean equals ( Object obj ) { if ( this == obj ) return true ; if ( ! ( obj instanceof ChannelBinding ) ) return false ; ChannelBinding cb = ( ChannelBinding ) obj ; if ( ( initiator != null && cb . initiator == null ) || ( initiator == null && cb . initiator != null ) ) return false ; if ( initiator != null && ! initiator . equals ( cb . initiator ) ) return false ; if ( ( acceptor != null && cb . acceptor == null ) || ( acceptor == null && cb . acceptor != null ) ) return false ; if ( acceptor != null && ! acceptor . equals ( cb . acceptor ) ) return false ; return Arrays . equals ( appData , cb . appData ) ; }
compares two instances of channelbinding .
