Class UnifiedMap.KeySet
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.UnifiedMap.KeySet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<K>,java.util.Collection<K>,java.util.Set<K>,BatchIterable<K>
- Enclosing class:
- UnifiedMap<K,V>
protected class UnifiedMap.KeySet extends java.lang.Object implements java.util.Set<K>, java.io.Serializable, BatchIterable<K>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedKeySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(K key)booleanaddAll(java.util.Collection<? extends K> collection)voidbatchForEach(Procedure<? super K> procedure, int sectionIndex, int sectionCount)private voidchainedAddToSet(java.lang.Object[] chain, MutableSet<K> replace)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> collection)protected voidcopyKeys(java.lang.Object[] result)booleanequals(java.lang.Object obj)voidforEach(java.util.function.Consumer<? super K> action)voidforEach(Procedure<? super K> procedure)intgetBatchCount(int batchSize)inthashCode()booleanisEmpty()java.util.Iterator<K>iterator()voidputIfFound(java.lang.Object key, java.util.Map<K,V> other)private voidputIfFoundFromChain(java.lang.Object[] chain, K key, java.util.Map<K,V> other)booleanremove(java.lang.Object key)booleanremoveAll(java.util.Collection<?> collection)booleanretainAll(java.util.Collection<?> collection)intsize()java.lang.Object[]toArray()<T> T[]toArray(T[] result)java.lang.StringtoString()protected java.lang.ObjectwriteReplace()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
-
Method Detail
-
add
public boolean add(K key)
-
addAll
public boolean addAll(java.util.Collection<? extends K> collection)
-
clear
public void clear()
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> collection)
-
isEmpty
public boolean isEmpty()
-
iterator
public java.util.Iterator<K> iterator()
-
remove
public boolean remove(java.lang.Object key)
-
removeAll
public boolean removeAll(java.util.Collection<?> collection)
-
putIfFoundFromChain
private void putIfFoundFromChain(java.lang.Object[] chain, K key, java.util.Map<K,V> other)
-
retainAll
public boolean retainAll(java.util.Collection<?> collection)
-
size
public int size()
- Specified by:
sizein interfaceBatchIterable<K>- Specified by:
sizein interfacejava.util.Collection<K>- Specified by:
sizein interfacejava.util.Set<K>
-
forEach
public void forEach(java.util.function.Consumer<? super K> action)
- Specified by:
forEachin interfacejava.lang.Iterable<K>
-
forEach
public void forEach(Procedure<? super K> procedure)
- Specified by:
forEachin interfaceBatchIterable<K>
-
getBatchCount
public int getBatchCount(int batchSize)
- Specified by:
getBatchCountin interfaceBatchIterable<K>
-
batchForEach
public void batchForEach(Procedure<? super K> procedure, int sectionIndex, int sectionCount)
- Specified by:
batchForEachin interfaceBatchIterable<K>
-
copyKeys
protected void copyKeys(java.lang.Object[] result)
-
equals
public boolean equals(java.lang.Object obj)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] result)
-
writeReplace
protected java.lang.Object writeReplace()
-
chainedAddToSet
private void chainedAddToSet(java.lang.Object[] chain, MutableSet<K> replace)
-
-