org.infinispan.util
Class ReadOnlyDataContainerBackedKeySet
java.lang.Object
org.infinispan.util.ReadOnlyDataContainerBackedKeySet
- All Implemented Interfaces:
- Iterable<Object>, Collection<Object>, Set<Object>
public class ReadOnlyDataContainerBackedKeySet
- extends Object
- implements Set<Object>
A Set view of keys in a data container, which is read-only and has efficient contains(), unlike some data container
ley sets.
- Since:
- 4.1
- Author:
- Manik Surtani
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
ReadOnlyDataContainerBackedKeySet
public ReadOnlyDataContainerBackedKeySet(DataContainer container)
size
public int size()
- Specified by:
size
in interface Collection<Object>
- Specified by:
size
in interface Set<Object>
isEmpty
public boolean isEmpty()
- Specified by:
isEmpty
in interface Collection<Object>
- Specified by:
isEmpty
in interface Set<Object>
contains
public boolean contains(Object o)
- Specified by:
contains
in interface Collection<Object>
- Specified by:
contains
in interface Set<Object>
iterator
public Iterator<Object> iterator()
- Specified by:
iterator
in interface Iterable<Object>
- Specified by:
iterator
in interface Collection<Object>
- Specified by:
iterator
in interface Set<Object>
toArray
public Object[] toArray()
- Specified by:
toArray
in interface Collection<Object>
- Specified by:
toArray
in interface Set<Object>
toArray
public <T> T[] toArray(T[] a)
- Specified by:
toArray
in interface Collection<Object>
- Specified by:
toArray
in interface Set<Object>
add
public boolean add(Object o)
- Specified by:
add
in interface Collection<Object>
- Specified by:
add
in interface Set<Object>
remove
public boolean remove(Object o)
- Specified by:
remove
in interface Collection<Object>
- Specified by:
remove
in interface Set<Object>
containsAll
public boolean containsAll(Collection<?> c)
- Specified by:
containsAll
in interface Collection<Object>
- Specified by:
containsAll
in interface Set<Object>
addAll
public boolean addAll(Collection<? extends Object> c)
- Specified by:
addAll
in interface Collection<Object>
- Specified by:
addAll
in interface Set<Object>
retainAll
public boolean retainAll(Collection<?> c)
- Specified by:
retainAll
in interface Collection<Object>
- Specified by:
retainAll
in interface Set<Object>
removeAll
public boolean removeAll(Collection<?> c)
- Specified by:
removeAll
in interface Collection<Object>
- Specified by:
removeAll
in interface Set<Object>
clear
public void clear()
- Specified by:
clear
in interface Collection<Object>
- Specified by:
clear
in interface Set<Object>
Copyright © 2011 JBoss, a division of Red Hat. All Rights Reserved.