com.hazelcast.collection.list
Class ListProxyImpl<E>

java.lang.Object
  extended by com.hazelcast.spi.AbstractDistributedObject<S>
      extended by com.hazelcast.collection.AbstractCollectionProxyImpl<ListService,E>
          extended by com.hazelcast.collection.list.ListProxyImpl<E>
All Implemented Interfaces:
DistributedObject, ICollection<E>, IList<E>, InitializingObject, Iterable<E>, Collection<E>, List<E>

public class ListProxyImpl<E>
extends AbstractCollectionProxyImpl<ListService,E>
implements IList<E>


Field Summary
 
Fields inherited from class com.hazelcast.collection.AbstractCollectionProxyImpl
name, partitionId
 
Fields inherited from class com.hazelcast.spi.AbstractDistributedObject
PARTITIONING_STRATEGY
 
Constructor Summary
protected ListProxyImpl(String name, NodeEngine nodeEngine, ListService service)
           
 
Method Summary
 void add(int index, E e)
           
 boolean addAll(int index, Collection<? extends E> c)
           
 E get(int index)
           
protected  CollectionConfig getConfig(NodeEngine nodeEngine)
           
 String getServiceName()
          Returns the service name for this object.
 int indexOf(Object o)
           
 Iterator<E> iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator<E> listIterator()
           
 ListIterator<E> listIterator(int index)
           
 E remove(int index)
           
 E set(int index, E element)
           
 List<E> subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
<T> T[]
toArray(T[] a)
           
 
Methods inherited from class com.hazelcast.collection.AbstractCollectionProxyImpl
add, addAll, addItemListener, clear, contains, containsAll, getName, initialize, invoke, isEmpty, remove, removeAll, removeItemListener, retainAll, size, throwExceptionIfNegative, throwExceptionIfNull
 
Methods inherited from class com.hazelcast.spi.AbstractDistributedObject
destroy, equals, getId, getNameAsPartitionAwareData, getNodeEngine, getPartitionKey, getService, hashCode, invalidate, postDestroy, throwNotActiveException, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size
 
Methods inherited from interface com.hazelcast.core.ICollection
addItemListener, getName, removeItemListener
 
Methods inherited from interface com.hazelcast.core.DistributedObject
destroy, getId, getPartitionKey
 

Constructor Detail

ListProxyImpl

protected ListProxyImpl(String name,
                        NodeEngine nodeEngine,
                        ListService service)
Method Detail

getConfig

protected CollectionConfig getConfig(NodeEngine nodeEngine)
Specified by:
getConfig in class AbstractCollectionProxyImpl<ListService,E>

add

public void add(int index,
                E e)
Specified by:
add in interface List<E>

get

public E get(int index)
Specified by:
get in interface List<E>

set

public E set(int index,
             E element)
Specified by:
set in interface List<E>

remove

public E remove(int index)
Specified by:
remove in interface List<E>

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List<E>

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List<E>

addAll

public boolean addAll(int index,
                      Collection<? extends E> c)
Specified by:
addAll in interface List<E>

listIterator

public ListIterator<E> listIterator()
Specified by:
listIterator in interface List<E>

listIterator

public ListIterator<E> listIterator(int index)
Specified by:
listIterator in interface List<E>

subList

public List<E> subList(int fromIndex,
                       int toIndex)
Specified by:
subList in interface List<E>

iterator

public Iterator<E> iterator()
Specified by:
iterator in interface Iterable<E>
Specified by:
iterator in interface Collection<E>
Specified by:
iterator in interface List<E>
Overrides:
iterator in class AbstractCollectionProxyImpl<ListService,E>

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection<E>
Specified by:
toArray in interface List<E>
Overrides:
toArray in class AbstractCollectionProxyImpl<ListService,E>

toArray

public <T> T[] toArray(T[] a)
Specified by:
toArray in interface Collection<E>
Specified by:
toArray in interface List<E>
Overrides:
toArray in class AbstractCollectionProxyImpl<ListService,E>

getServiceName

public String getServiceName()
Description copied from interface: DistributedObject
Returns the service name for this object.

Specified by:
getServiceName in interface DistributedObject
Specified by:
getServiceName in class AbstractDistributedObject<ListService>
Returns:
the service name for this object.


Copyright © 2015 Hazelcast, Inc.. All Rights Reserved.