@Test public void testIterator() throws Exception { }
@Override public Iterator<E> iterator() { final Collection<E> collection = getTheCollection(); final AbstractCollection<E> proxy = this; return new Iterator<E>() { Iterator<E> iterator = collection.iterator(); volatile E lastRecord; public boolean hasNext() { return iterator.hasNext(); } public E next() { lastRecord = iterator.next(); return lastRecord; } public void remove() { iterator.remove(); proxy.remove(lastRecord); } }; }
CollectionClientProxy extends AbstractCollection<E> { @Override public Iterator<E> iterator() { final Collection<E> collection = getTheCollection(); final AbstractCollection<E> proxy = this; return new Iterator<E>() { Iterator<E> iterator = collection.iterator(); volatile E lastRecord; public boolean hasNext() { return iterator.hasNext(); } public E next() { lastRecord = iterator.next(); return lastRecord; } public void remove() { iterator.remove(); proxy.remove(lastRecord); } }; } }
CollectionClientProxy extends AbstractCollection<E> { @Override public Iterator<E> iterator() { final Collection<E> collection = getTheCollection(); final AbstractCollection<E> proxy = this; return new Iterator<E>() { Iterator<E> iterator = collection.iterator(); volatile E lastRecord; public boolean hasNext() { return iterator.hasNext(); } public E next() { lastRecord = iterator.next(); return lastRecord; } public void remove() { iterator.remove(); proxy.remove(lastRecord); } }; } CollectionClientProxy(HazelcastClient hazelcastClient, String name);  CollectionClientProxy(ProxyHelper proxyHelper, String name); }
CollectionClientProxy extends AbstractCollection<E> { @Override public Iterator<E> iterator() { final Collection<E> collection = getTheCollection(); final AbstractCollection<E> proxy = this; return new Iterator<E>() { Iterator<E> iterator = collection.iterator(); volatile E lastRecord; public boolean hasNext() { return iterator.hasNext(); } public E next() { lastRecord = iterator.next(); return lastRecord; } public void remove() { iterator.remove(); proxy.remove(lastRecord); } }; } CollectionClientProxy(HazelcastClient hazelcastClient, String name);  CollectionClientProxy(ProxyHelper proxyHelper, String name); void destroy(); Object getId(); @Override Iterator<E> iterator(); @Override String toString(); synchronized void addItemListener(ItemListener<E> listener, boolean includeValue); synchronized void removeItemListener(ItemListener<E> listener); @Override int size(); @Override int hashCode(); }
CollectionClientProxy extends AbstractCollection<E> { @Override public Iterator<E> iterator() { final Collection<E> collection = getTheCollection(); final AbstractCollection<E> proxy = this; return new Iterator<E>() { Iterator<E> iterator = collection.iterator(); volatile E lastRecord; public boolean hasNext() { return iterator.hasNext(); } public E next() { lastRecord = iterator.next(); return lastRecord; } public void remove() { iterator.remove(); proxy.remove(lastRecord); } }; } CollectionClientProxy(HazelcastClient hazelcastClient, String name);  CollectionClientProxy(ProxyHelper proxyHelper, String name); void destroy(); Object getId(); @Override Iterator<E> iterator(); @Override String toString(); synchronized void addItemListener(ItemListener<E> listener, boolean includeValue); synchronized void removeItemListener(ItemListener<E> listener); @Override int size(); @Override int hashCode();  }