@Test public void containsAll() { EnumeratedIdentitySet<Element> set = new EnumeratedIdentitySet<>(elements); assertTrue(set.containsAll(elements.subList(0, 7))); assertTrue(set.containsAll(elements)); List<Element> extendedElements = new ArrayList<>(elements); extendedElements.add(new Element()); assertFalse(set.containsAll(extendedElements)); }
@Override public boolean containsAll(Collection<?> c) { return set.keySet().containsAll(c); }
EnumeratedIdentitySet implements Set<T> { @Override public boolean containsAll(Collection<?> c) { return set.keySet().containsAll(c); } }
EnumeratedIdentitySet implements Set<T> { @Override public boolean containsAll(Collection<?> c) { return set.keySet().containsAll(c); } EnumeratedIdentitySet(Collection<? extends T> collection);  EnumeratedIdentitySet(); }
EnumeratedIdentitySet implements Set<T> { @Override public boolean containsAll(Collection<?> c) { return set.keySet().containsAll(c); } EnumeratedIdentitySet(Collection<? extends T> collection);  EnumeratedIdentitySet(); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<T> iterator(); @Override Object[] toArray(); @Override T1[] toArray(T1[] a); @Override boolean add(T t); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<? extends T> collection); @Override boolean retainAll(Collection<?> collection); @Override boolean removeAll(Collection<?> collection); @Override void clear(); List<T> insertionOrderedList(); }
EnumeratedIdentitySet implements Set<T> { @Override public boolean containsAll(Collection<?> c) { return set.keySet().containsAll(c); } EnumeratedIdentitySet(Collection<? extends T> collection);  EnumeratedIdentitySet(); @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<T> iterator(); @Override Object[] toArray(); @Override T1[] toArray(T1[] a); @Override boolean add(T t); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<? extends T> collection); @Override boolean retainAll(Collection<?> collection); @Override boolean removeAll(Collection<?> collection); @Override void clear(); List<T> insertionOrderedList();  }