/** * A method that compares this WaveAudioEssenceDescriptorBO with the object that was passed in and returns true/false depending on whether the objects * match field for field. * Note: If the object passed in is not an instance of a WaveAudioEssenceDescriptorBO this method would return * false. * @param other the object that this parsed WaveAudioEssenceDescriptor should be compared with * @return result of comparing this parsed WaveAudioEssenceDescriptor with the object that was passed in */ public boolean equals(Object other) { if(!(other instanceof WaveAudioEssenceDescriptorBO)) { return false; } WaveAudioEssenceDescriptorBO otherObject = (WaveAudioEssenceDescriptorBO)other; if ((this.audio_sampling_rate == null) || (!this.audio_sampling_rate.equals(otherObject.audio_sampling_rate))) { return false; } if ((this.channelcount== null) || (!this.channelcount.equals(otherObject.channelcount))) { return false; } if ((this.quantization_bits == null) || (!this.quantization_bits.equals(otherObject.quantization_bits))) { return false; } return !((this.block_align == null) || (!this.block_align.equals(otherObject.block_align))); }