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 long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protected
KeySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(K key)
boolean
addAll(java.util.Collection<? extends K> collection)
void
batchForEach(Procedure<? super K> procedure, int sectionIndex, int sectionCount)
private void
chainedAddToSet(java.lang.Object[] chain, UnifiedSet<K> replace)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> collection)
protected void
copyKeys(java.lang.Object[] result)
boolean
equals(java.lang.Object obj)
void
forEach(Procedure<? super K> procedure)
int
getBatchCount(int batchSize)
int
hashCode()
boolean
isEmpty()
java.util.Iterator<K>
iterator()
void
putIfFound(java.lang.Object key, java.util.Map<K,V> other)
private void
putIfFoundFromChain(java.lang.Object[] chain, K key, java.util.Map<K,V> other)
boolean
remove(java.lang.Object key)
boolean
removeAll(java.util.Collection<?> collection)
boolean
retainAll(java.util.Collection<?> collection)
int
size()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] result)
java.lang.String
toString()
protected java.lang.Object
writeReplace()
-
-
-
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:
size
in interfaceBatchIterable<K>
- Specified by:
size
in interfacejava.util.Collection<K>
- Specified by:
size
in interfacejava.util.Set<K>
-
forEach
public void forEach(Procedure<? super K> procedure)
- Specified by:
forEach
in interfaceBatchIterable<K>
-
getBatchCount
public int getBatchCount(int batchSize)
- Specified by:
getBatchCount
in interfaceBatchIterable<K>
-
batchForEach
public void batchForEach(Procedure<? super K> procedure, int sectionIndex, int sectionCount)
- Specified by:
batchForEach
in 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:
toString
in 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, UnifiedSet<K> replace)
-
-