Class UnifiedMapWithHashingStrategy.EntrySet
- java.lang.Object
-
- org.eclipse.collections.impl.map.strategy.mutable.UnifiedMapWithHashingStrategy.EntrySet
-
- All Implemented Interfaces:
java.io.Serializable,java.lang.Iterable<java.util.Map.Entry<K,V>>,java.util.Collection<java.util.Map.Entry<K,V>>,java.util.Set<java.util.Map.Entry<K,V>>,BatchIterable<java.util.Map.Entry<K,V>>
- Enclosing class:
- UnifiedMapWithHashingStrategy<K,V>
protected class UnifiedMapWithHashingStrategy.EntrySet extends java.lang.Object implements java.util.Set<java.util.Map.Entry<K,V>>, java.io.Serializable, BatchIterable<java.util.Map.Entry<K,V>>
- See Also:
- Serialized Form
-
-
Field Summary
Fields Modifier and Type Field Description private java.lang.ref.WeakReference<UnifiedMapWithHashingStrategy<K,V>>holderprivate static longserialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protectedEntrySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanadd(java.util.Map.Entry<K,V> entry)booleanaddAll(java.util.Collection<? extends java.util.Map.Entry<K,V>> collection)voidbatchForEach(Procedure<? super java.util.Map.Entry<K,V>> procedure, int sectionIndex, int sectionCount)private voidchainedForEachEntry(java.lang.Object[] chain, Procedure<? super java.util.Map.Entry<K,V>> procedure)private java.util.Map.Entry<K,V>chainGetEntry(java.lang.Object[] chain, K key, V value)voidclear()booleancontains(java.lang.Object o)booleancontainsAll(java.util.Collection<?> collection)booleancontainsEntry(java.util.Map.Entry<?,?> entry)protected voidcopyEntries(java.lang.Object[] result)booleanequals(java.lang.Object obj)voidforEach(java.util.function.Consumer<? super java.util.Map.Entry<K,V>> action)voidforEach(Procedure<? super java.util.Map.Entry<K,V>> procedure)intgetBatchCount(int batchSize)private java.util.Map.Entry<K,V>getEntry(java.util.Map.Entry<?,?> entry)inthashCode()booleanisEmpty()java.util.Iterator<java.util.Map.Entry<K,V>>iterator()private voidreadObject(java.io.ObjectInputStream in)booleanremove(java.lang.Object e)booleanremoveAll(java.util.Collection<?> collection)private booleanremoveFromChain(java.lang.Object[] chain, K key, V value, int index)booleanretainAll(java.util.Collection<?> collection)intsize()java.lang.Object[]toArray()<T> T[]toArray(T[] result)java.lang.StringtoString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
holder
private transient java.lang.ref.WeakReference<UnifiedMapWithHashingStrategy<K,V>> holder
-
-
Method Detail
-
clear
public void clear()
-
containsEntry
public boolean containsEntry(java.util.Map.Entry<?,?> entry)
-
chainGetEntry
private java.util.Map.Entry<K,V> chainGetEntry(java.lang.Object[] chain, K key, V value)
-
contains
public boolean contains(java.lang.Object o)
-
containsAll
public boolean containsAll(java.util.Collection<?> collection)
-
isEmpty
public boolean isEmpty()
-
remove
public boolean remove(java.lang.Object e)
-
removeFromChain
private boolean removeFromChain(java.lang.Object[] chain, K key, V value, int index)
-
removeAll
public boolean removeAll(java.util.Collection<?> collection)
-
retainAll
public boolean retainAll(java.util.Collection<?> collection)
-
size
public int size()
-
forEach
public void forEach(Procedure<? super java.util.Map.Entry<K,V>> procedure)
- Specified by:
forEachin interfaceBatchIterable<java.util.Map.Entry<K,V>>
-
chainedForEachEntry
private void chainedForEachEntry(java.lang.Object[] chain, Procedure<? super java.util.Map.Entry<K,V>> procedure)
-
getBatchCount
public int getBatchCount(int batchSize)
- Specified by:
getBatchCountin interfaceBatchIterable<java.util.Map.Entry<K,V>>
-
batchForEach
public void batchForEach(Procedure<? super java.util.Map.Entry<K,V>> procedure, int sectionIndex, int sectionCount)
- Specified by:
batchForEachin interfaceBatchIterable<java.util.Map.Entry<K,V>>
-
copyEntries
protected void copyEntries(java.lang.Object[] result)
-
toArray
public java.lang.Object[] toArray()
-
toArray
public <T> T[] toArray(T[] result)
-
readObject
private void readObject(java.io.ObjectInputStream in) throws java.io.IOException, java.lang.ClassNotFoundException- Throws:
java.io.IOExceptionjava.lang.ClassNotFoundException
-
equals
public boolean equals(java.lang.Object obj)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-