@Test void toArray() { List<String> contents = Arrays.asList("test1", "test2", "test3"); hugeSet.addAll(contents); assertEquals(3, hugeSet.toArray().length); }
@Override public Object[] toArray() { if (set == null) return hashSet.toArray(); return set.toArray(); }
HugeSet implements Set<E>, Closeable { @Override public Object[] toArray() { if (set == null) return hashSet.toArray(); return set.toArray(); } }
HugeSet implements Set<E>, Closeable { @Override public Object[] toArray() { if (set == null) return hashSet.toArray(); return set.toArray(); }  }
HugeSet implements Set<E>, Closeable { @Override public Object[] toArray() { if (set == null) return hashSet.toArray(); return set.toArray(); }  @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<E> iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override boolean add(E obj); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<? extends E> c); @Override boolean retainAll(Collection<?> c); @Override boolean removeAll(Collection<?> c); @Override void clear(); @Override void close(); }
HugeSet implements Set<E>, Closeable { @Override public Object[] toArray() { if (set == null) return hashSet.toArray(); return set.toArray(); }  @Override int size(); @Override boolean isEmpty(); @Override boolean contains(Object o); @Override Iterator<E> iterator(); @Override Object[] toArray(); @Override T[] toArray(T[] a); @Override boolean add(E obj); @Override boolean remove(Object o); @Override boolean containsAll(Collection<?> c); @Override boolean addAll(Collection<? extends E> c); @Override boolean retainAll(Collection<?> c); @Override boolean removeAll(Collection<?> c); @Override void clear(); @Override void close();  }