@Override public boolean equals(Object other) { if (other == null) return false; if (!(other instanceof MidiPortWrapper)) return false; MidiPortWrapper otherWrapper = (MidiPortWrapper) other; if (mPortIndex != otherWrapper.mPortIndex) return false; if (mType != otherWrapper.mType) return false; if (mInfo == null) return (otherWrapper.mInfo == null); return mInfo.equals(otherWrapper.mInfo); }
@Override public boolean equals(Object other) { if (other == null) return false; if (!(other instanceof MidiPortWrapper)) return false; MidiPortWrapper otherWrapper = (MidiPortWrapper) other; if (mPortIndex != otherWrapper.mPortIndex) return false; if (mType != otherWrapper.mType) return false; if (mInfo == null) return (otherWrapper.mInfo == null); return mInfo.equals(otherWrapper.mInfo); }
@Override public boolean equals(Object other) { if (other == null) return false; if (!(other instanceof MidiPortWrapper)) return false; MidiPortWrapper otherWrapper = (MidiPortWrapper) other; if (mPortIndex != otherWrapper.mPortIndex) return false; if (mType != otherWrapper.mType) return false; if (mInfo == null) return (otherWrapper.mInfo == null); return mInfo.equals(otherWrapper.mInfo); }
@Override public boolean equals(Object o) { if (o instanceof BluetoothMidiDeviceTracker) { BluetoothMidiDeviceTracker other = (BluetoothMidiDeviceTracker) o; return midiDevice.getInfo().equals(other.midiDevice.getInfo()); } else { return false; } } }