public boolean sameAs ( Object obj ) { if ( obj == null || ! ( obj instanceof Status ) ) return false ; Status other = ( Status ) obj ; if ( other . code != code || ! other . message . equals ( message ) ) return false ; return other . extendedStatus . equals ( extendedStatus ) ; }
Answers whether the receiver and the argument are considered identical . To be identical the receiver and the argument must have the same status code message and extended status information .