Class UnifiedMap.EntrySet
- java.lang.Object
-
- org.eclipse.collections.impl.map.mutable.UnifiedMap.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:
- UnifiedMap<K,V>
protected class UnifiedMap.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<UnifiedMap<K,V>>
holder
private static long
serialVersionUID
-
Constructor Summary
Constructors Modifier Constructor Description protected
EntrySet()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
add(java.util.Map.Entry<K,V> entry)
boolean
addAll(java.util.Collection<? extends java.util.Map.Entry<K,V>> collection)
void
batchForEach(Procedure<? super java.util.Map.Entry<K,V>> procedure, int sectionIndex, int sectionCount)
private void
chainedForEachEntry(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)
void
clear()
boolean
contains(java.lang.Object o)
boolean
containsAll(java.util.Collection<?> collection)
boolean
containsEntry(java.util.Map.Entry<?,?> entry)
protected void
copyEntries(java.lang.Object[] result)
boolean
equals(java.lang.Object obj)
void
forEach(Procedure<? super java.util.Map.Entry<K,V>> procedure)
int
getBatchCount(int batchSize)
private java.util.Map.Entry<K,V>
getEntry(java.util.Map.Entry<?,?> entry)
int
hashCode()
boolean
isEmpty()
java.util.Iterator<java.util.Map.Entry<K,V>>
iterator()
private void
readObject(java.io.ObjectInputStream in)
boolean
remove(java.lang.Object e)
boolean
removeAll(java.util.Collection<?> collection)
private boolean
removeFromChain(java.lang.Object[] chain, K key, V value, int index)
boolean
retainAll(java.util.Collection<?> collection)
int
size()
java.lang.Object[]
toArray()
<T> T[]
toArray(T[] result)
java.lang.String
toString()
-
-
-
Field Detail
-
serialVersionUID
private static final long serialVersionUID
- See Also:
- Constant Field Values
-
holder
private transient java.lang.ref.WeakReference<UnifiedMap<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:
forEach
in 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:
getBatchCount
in 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:
batchForEach
in 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.IOException
java.lang.ClassNotFoundException
-
equals
public boolean equals(java.lang.Object obj)
-
hashCode
public int hashCode()
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-