com.hazelcast.collection.list
Class ListProxyImpl<E>
java.lang.Object
com.hazelcast.spi.AbstractDistributedObject<S>
com.hazelcast.collection.AbstractCollectionProxyImpl<ListService,E>
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>
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 interface java.util.List |
add, addAll, clear, contains, containsAll, equals, hashCode, isEmpty, remove, removeAll, retainAll, size |
ListProxyImpl
protected ListProxyImpl(String name,
NodeEngine nodeEngine,
ListService service)
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.