@ Override public boolean compare ( Object object ) { if ( ! ( object instanceof Element ) ) { return false ; } if ( ! super . compare ( object ) ) { return false ; } Element elem = ( Element ) object ; return Objects . equal ( atomicNumber , elem . atomicNumber ) ; }
Compares an Element with this Element .