M
- A subclass of Member
interfacepublic final class MemberSelectingCollection<M extends Member> extends Object implements Collection<M>
MemberSelector
instances to
its internal Member
collection. It reflects changes in the internal collection.
Mutating methods throw UnsupportedOperationException
It is mainly used for querying a member list.Constructor and Description |
---|
MemberSelectingCollection(Collection<M> members,
MemberSelector selector) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(M member) |
boolean |
addAll(Collection<? extends M> c) |
void |
clear() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
boolean |
isEmpty() |
Iterator<M> |
iterator() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
boolean |
retainAll(Collection<?> c) |
int |
size() |
Object[] |
toArray() |
<T> T[] |
toArray(T[] a) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
equals, hashCode, parallelStream, removeIf, spliterator, stream
public MemberSelectingCollection(Collection<M> members, MemberSelector selector)
public int size()
size
in interface Collection<M extends Member>
public boolean isEmpty()
isEmpty
in interface Collection<M extends Member>
public boolean contains(Object o)
contains
in interface Collection<M extends Member>
public Object[] toArray()
toArray
in interface Collection<M extends Member>
public <T> T[] toArray(T[] a)
toArray
in interface Collection<M extends Member>
public boolean add(M member)
add
in interface Collection<M extends Member>
public boolean remove(Object o)
remove
in interface Collection<M extends Member>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<M extends Member>
public boolean addAll(Collection<? extends M> c)
addAll
in interface Collection<M extends Member>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<M extends Member>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<M extends Member>
public void clear()
clear
in interface Collection<M extends Member>
Copyright © 2017 Hazelcast, Inc.. All Rights Reserved.