Class UnifiedMapWithHashingStrategy.KeySet
java.lang.Object
org.eclipse.collections.impl.map.strategy.mutable.UnifiedMapWithHashingStrategy.KeySet
- All Implemented Interfaces:
Serializable
,Iterable<K>
,Collection<K>
,Set<K>
,BatchIterable<K>
- Enclosing class:
UnifiedMapWithHashingStrategy<K,
V>
protected class UnifiedMapWithHashingStrategy.KeySet
extends Object
implements Set<K>, Serializable, BatchIterable<K>
- See Also:
-
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
boolean
addAll
(Collection<? extends K> collection) void
batchForEach
(Procedure<? super K> procedure, int sectionIndex, int sectionCount) private void
chainedAddToSet
(Object[] chain, UnifiedSetWithHashingStrategy<K> replace) void
clear()
boolean
boolean
containsAll
(Collection<?> collection) protected void
boolean
void
int
getBatchCount
(int batchSize) int
hashCode()
boolean
isEmpty()
iterator()
void
putIfFound
(Object key, Map<K, V> other) private void
boolean
boolean
removeAll
(Collection<?> collection) boolean
retainAll
(Collection<?> collection) int
size()
Object[]
toArray()
<T> T[]
toArray
(T[] result) toString()
protected Object
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.util.Collection
parallelStream, removeIf, stream, toArray
Methods inherited from interface java.util.Set
spliterator
-
Field Details
-
serialVersionUID
private static final long serialVersionUID- See Also:
-
-
Constructor Details
-
KeySet
protected KeySet()
-
-
Method Details
-
add
-
addAll
-
clear
public void clear() -
contains
-
containsAll
- Specified by:
containsAll
in interfaceCollection<K>
- Specified by:
containsAll
in interfaceSet<K>
-
isEmpty
public boolean isEmpty() -
iterator
-
remove
-
removeAll
-
putIfFound
-
putIfFoundFromChain
-
retainAll
-
size
public int size()- Specified by:
size
in interfaceBatchIterable<K>
- Specified by:
size
in interfaceCollection<K>
- Specified by:
size
in interfaceSet<K>
-
forEach
- Specified by:
forEach
in interfaceBatchIterable<K>
-
getBatchCount
public int getBatchCount(int batchSize) - Specified by:
getBatchCount
in interfaceBatchIterable<K>
-
batchForEach
- Specified by:
batchForEach
in interfaceBatchIterable<K>
-
copyKeys
-
equals
-
hashCode
public int hashCode() -
toString
-
toArray
-
toArray
public <T> T[] toArray(T[] result) -
writeReplace
-
chainedAddToSet
-