public class ListProxyImpl extends AbstractList implements ListProxy, DataSerializable
Instance.InstanceType
modCount
Constructor and Description |
---|
ListProxyImpl() |
ListProxyImpl(String name,
FactoryImpl factory) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
Object element) |
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
void |
addItemListener(ItemListener itemListener,
boolean includeValue)
Adds an item listener for this collection.
|
boolean |
contains(Object o) |
void |
destroy()
Destroys this instance cluster-wide.
|
Object |
get(int index) |
Object |
getId()
Returns the unique id for this instance.
|
Instance.InstanceType |
getInstanceType()
Returns instance type such as map, set, list, lock, topic, multimap, id generator
|
String |
getName()
Returns the name of this collection
|
int |
indexOf(Object o) |
Iterator |
iterator() |
int |
lastIndexOf(Object o) |
void |
readData(DataInput in) |
Object |
remove(int index) |
boolean |
remove(Object o) |
void |
removeItemListener(ItemListener itemListener)
Removes the specified item listener.
|
Object |
set(int index,
Object element) |
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance) |
int |
size() |
String |
toString() |
void |
writeData(DataOutput out) |
addAll, clear, equals, hashCode, listIterator, listIterator, removeRange, subList
containsAll, isEmpty, removeAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, clear, containsAll, equals, hashCode, isEmpty, listIterator, listIterator, removeAll, retainAll, subList, toArray, toArray
public ListProxyImpl()
public ListProxyImpl(String name, FactoryImpl factory)
public Instance.InstanceType getInstanceType()
Instance
getInstanceType
in interface Instance
public void destroy()
Instance
public Object getId()
Instance
public int size()
size
in interface Collection
size
in interface List
size
in class AbstractCollection
public boolean contains(Object o)
contains
in interface Collection
contains
in interface List
contains
in class AbstractCollection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface List
iterator
in class AbstractList
public boolean add(Object o)
add
in interface Collection
add
in interface List
add
in class AbstractList
public boolean remove(Object o)
remove
in interface Collection
remove
in interface List
remove
in class AbstractCollection
public boolean addAll(Collection c)
addAll
in interface Collection
addAll
in interface List
addAll
in class AbstractCollection
public Object get(int index)
get
in interface List
get
in class AbstractList
public Object set(int index, Object element)
set
in interface List
set
in class AbstractList
public void add(int index, Object element)
add
in interface List
add
in class AbstractList
public Object remove(int index)
remove
in interface List
remove
in class AbstractList
public int indexOf(Object o)
indexOf
in interface List
indexOf
in class AbstractList
public int lastIndexOf(Object o)
lastIndexOf
in interface List
lastIndexOf
in class AbstractList
public void readData(DataInput in) throws IOException
readData
in interface DataSerializable
IOException
public void writeData(DataOutput out) throws IOException
writeData
in interface DataSerializable
IOException
public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
setHazelcastInstance
in interface HazelcastInstanceAware
public String getName()
ICollection
getName
in interface ICollection
public void addItemListener(ItemListener itemListener, boolean includeValue)
ICollection
addItemListener
in interface ICollection
itemListener
- item listenerincludeValue
- true updated item should be passed
to the item listener, false otherwise.public void removeItemListener(ItemListener itemListener)
ICollection
removeItemListener
in interface ICollection
itemListener
- item listener for this collectionpublic String toString()
toString
in class AbstractCollection
Copyright © 2013 Hazelcast, Inc.. All rights reserved.