Mixer.Info[] devices = getMixerInfo(); for (Info element : devices) { if (info.equals(element)) { return true; } } return false;