Class SWMRHashTable.ViewCollection<K,V,T>
java.lang.Object
ca.spottedleaf.concurrentutil.map.SWMRHashTable.ViewCollection<K,V,T>
- All Implemented Interfaces:
Iterable<T>,Collection<T>
- Direct Known Subclasses:
SWMRHashTable.ViewSet
- Enclosing class:
SWMRHashTable<K,V>
protected abstract static class SWMRHashTable.ViewCollection<K,V,T>
extends Object
implements Collection<T>
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanbooleanaddAll(Collection<? extends T> collections) voidclear()booleancontainsAll(Collection<?> collection) inthashCode()booleanisEmpty()booleanremoveAll(Collection<?> collection) intsize()Object[]toArray()<E> E[]toArray(E[] array) <E> E[]toArray(IntFunction<E[]> generator) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface java.util.Collection
contains, equals, iterator, parallelStream, remove, removeIf, retainAll, stream
-
Field Details
-
map
-
-
Constructor Details
-
ViewCollection
-
-
Method Details
-
add
- Specified by:
addin interfaceCollection<K>
-
addAll
- Specified by:
addAllin interfaceCollection<K>
-
removeAll
- Specified by:
removeAllin interfaceCollection<K>
-
size
public int size()- Specified by:
sizein interfaceCollection<K>
-
isEmpty
public boolean isEmpty()- Specified by:
isEmptyin interfaceCollection<K>
-
clear
public void clear()- Specified by:
clearin interfaceCollection<K>
-
containsAll
- Specified by:
containsAllin interfaceCollection<K>
-
toArray
- Specified by:
toArrayin interfaceCollection<K>
-
toArray
public <E> E[] toArray(E[] array) - Specified by:
toArrayin interfaceCollection<K>
-
toArray
- Specified by:
toArrayin interfaceCollection<K>
-
hashCode
public int hashCode()- Specified by:
hashCodein interfaceCollection<K>- Overrides:
hashCodein classObject
-
spliterator
- Specified by:
spliteratorin interfaceCollection<K>- Specified by:
spliteratorin interfaceIterable<K>
-