public class SetProxyImpl extends AbstractCollection implements SetProxy, DataSerializable, HazelcastInstanceAwareInstance
Instance.InstanceType
Constructor and Description |
---|
SetProxyImpl() |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o) |
void |
addItemListener(ItemListener itemListener,
boolean includeValue)
Adds an item listener for this collection.
|
void |
clear() |
boolean |
contains(Object o) |
void |
destroy()
Destroys this instance cluster-wide.
|
boolean |
equals(Object o) |
SetProxy |
getBase() |
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
|
MProxy |
getMProxy() |
String |
getName()
Returns the name of this collection
|
int |
hashCode() |
Iterator |
iterator() |
void |
readData(DataInput in) |
boolean |
remove(Object o) |
void |
removeItemListener(ItemListener itemListener)
Removes the specified item listener.
|
boolean |
removeKey(Object key) |
void |
setHazelcastInstance(HazelcastInstance hazelcastInstance) |
int |
size() |
String |
toString() |
void |
writeData(DataOutput out) |
addAll, containsAll, isEmpty, removeAll, retainAll, toArray, toArray
public SetProxy getBase()
public void setHazelcastInstance(HazelcastInstance hazelcastInstance)
setHazelcastInstance
in interface HazelcastInstanceAware
public Object getId()
Instance
public String toString()
toString
in class AbstractCollection
public boolean equals(Object o)
public int hashCode()
public int size()
size
in interface Collection
size
in interface Set
size
in class AbstractCollection
public boolean contains(Object o)
contains
in interface Collection
contains
in interface Set
contains
in class AbstractCollection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
iterator
in interface Set
iterator
in class AbstractCollection
public boolean add(Object o)
add
in interface Collection
add
in interface Set
add
in class AbstractCollection
public boolean remove(Object o)
remove
in interface Collection
remove
in interface Set
remove
in class AbstractCollection
public void clear()
clear
in interface Collection
clear
in interface Set
clear
in class AbstractCollection
public Instance.InstanceType getInstanceType()
Instance
getInstanceType
in interface Instance
public void destroy()
Instance
public void writeData(DataOutput out) throws IOException
writeData
in interface DataSerializable
IOException
public void readData(DataInput in) throws IOException
readData
in interface DataSerializable
IOException
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 boolean removeKey(Object key)
Copyright © 2013 Hazelcast, Inc.. All rights reserved.