com.hazelcast.client
Class CollectionClientProxy<E>

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by com.hazelcast.client.CollectionClientProxy<E>
All Implemented Interfaces:
Iterable<E>, Collection<E>
Direct Known Subclasses:
ListClientProxy, SetClientProxy

public abstract class CollectionClientProxy<E>
extends AbstractCollection<E>


Field Summary
protected  String name
           
protected  ProxyHelper proxyHelper
           
 
Constructor Summary
CollectionClientProxy(HazelcastClient hazelcastClient, String name)
           
CollectionClientProxy(ProxyHelper proxyHelper, String name)
           
 
Method Summary
 void addItemListener(ItemListener<E> listener, boolean includeValue)
           
 void destroy()
           
 Object getId()
           
protected abstract  Collection<E> getTheCollection()
           
 int hashCode()
           
 Iterator<E> iterator()
           
 void removeItemListener(ItemListener<E> listener)
           
 int size()
           
 String toString()
           
 
Methods inherited from class java.util.AbstractCollection
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.Collection
equals
 

Field Detail

proxyHelper

protected final ProxyHelper proxyHelper

name

protected final String name
Constructor Detail

CollectionClientProxy

public CollectionClientProxy(HazelcastClient hazelcastClient,
                             String name)

CollectionClientProxy

public CollectionClientProxy(ProxyHelper proxyHelper,
                             String name)
Method Detail

destroy

public void destroy()

getId

public Object getId()

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in class AbstractCollection<E>

getTheCollection

protected abstract Collection<E> getTheCollection()

toString

public String toString()
Overrides:
toString in class AbstractCollection<E>

addItemListener

public void addItemListener(ItemListener<E> listener,
                            boolean includeValue)

removeItemListener

public void removeItemListener(ItemListener<E> listener)

size

public int size()
Specified by:
size in interface Collection<E>
Specified by:
size in class AbstractCollection<E>

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection<E>
Overrides:
hashCode in class Object


Copyright © 2012 Hazel Bilisim Ltd.. All Rights Reserved.