Class 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
    • 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()  
      • 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.lang.Iterable

        forEach
      • Methods inherited from interface java.util.Set

        spliterator
    • Constructor Detail

      • EntrySet

        protected EntrySet()
    • Method Detail

      • add

        public boolean add​(java.util.Map.Entry<K,​V> entry)
        Specified by:
        add in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        add in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • addAll

        public boolean addAll​(java.util.Collection<? extends java.util.Map.Entry<K,​V>> collection)
        Specified by:
        addAll in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        addAll in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        clear in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • containsEntry

        public boolean containsEntry​(java.util.Map.Entry<?,​?> entry)
      • getEntry

        private java.util.Map.Entry<K,​V> getEntry​(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)
        Specified by:
        contains in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        contains in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • containsAll

        public boolean containsAll​(java.util.Collection<?> collection)
        Specified by:
        containsAll in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        containsAll in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • isEmpty

        public boolean isEmpty()
        Specified by:
        isEmpty in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        isEmpty in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • iterator

        public java.util.Iterator<java.util.Map.Entry<K,​V>> iterator()
        Specified by:
        iterator in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        iterator in interface java.lang.Iterable<java.util.Map.Entry<K,​V>>
        Specified by:
        iterator in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • remove

        public boolean remove​(java.lang.Object e)
        Specified by:
        remove in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        remove in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • removeFromChain

        private boolean removeFromChain​(java.lang.Object[] chain,
                                        K key,
                                        V value,
                                        int index)
      • removeAll

        public boolean removeAll​(java.util.Collection<?> collection)
        Specified by:
        removeAll in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        removeAll in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • retainAll

        public boolean retainAll​(java.util.Collection<?> collection)
        Specified by:
        retainAll in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        retainAll in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • size

        public int size()
        Specified by:
        size in interface BatchIterable<java.util.Map.Entry<K,​V>>
        Specified by:
        size in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        size in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • forEach

        public void forEach​(Procedure<? super java.util.Map.Entry<K,​V>> procedure)
        Specified by:
        forEach in interface BatchIterable<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 interface BatchIterable<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 interface BatchIterable<java.util.Map.Entry<K,​V>>
      • copyEntries

        protected void copyEntries​(java.lang.Object[] result)
      • toArray

        public java.lang.Object[] toArray()
        Specified by:
        toArray in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        toArray in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • toArray

        public <T> T[] toArray​(T[] result)
        Specified by:
        toArray in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        toArray in interface java.util.Set<java.util.Map.Entry<K,​V>>
      • 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)
        Specified by:
        equals in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        equals in interface java.util.Set<java.util.Map.Entry<K,​V>>
        Overrides:
        equals in class java.lang.Object
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface java.util.Collection<java.util.Map.Entry<K,​V>>
        Specified by:
        hashCode in interface java.util.Set<java.util.Map.Entry<K,​V>>
        Overrides:
        hashCode in class java.lang.Object
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object