/** * Test if a DiscoverInfo response contains duplicate features. * * @return true if duplicate identities where found, otherwise false */ public boolean containsDuplicateFeatures() { List<Feature> checkedFeatures = new LinkedList<Feature>(); for (Feature f : features) { for (Feature f2 : checkedFeatures) { if (f.equals(f2)) return true; } checkedFeatures.add(f); } return false; }