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

      • KeySet

        protected KeySet()
    • Method Detail

      • add

        public boolean add​(K key)
        Specified by:
        add in interface java.util.Collection<K>
        Specified by:
        add in interface java.util.Set<K>
      • addAll

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

        public void clear()
        Specified by:
        clear in interface java.util.Collection<K>
        Specified by:
        clear in interface java.util.Set<K>
      • contains

        public boolean contains​(java.lang.Object o)
        Specified by:
        contains in interface java.util.Collection<K>
        Specified by:
        contains in interface java.util.Set<K>
      • containsAll

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

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

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

        public boolean remove​(java.lang.Object key)
        Specified by:
        remove in interface java.util.Collection<K>
        Specified by:
        remove in interface java.util.Set<K>
      • removeAll

        public boolean removeAll​(java.util.Collection<?> collection)
        Specified by:
        removeAll in interface java.util.Collection<K>
        Specified by:
        removeAll in interface java.util.Set<K>
      • putIfFound

        public void putIfFound​(java.lang.Object key,
                               java.util.Map<K,​V> other)
      • putIfFoundFromChain

        private void putIfFoundFromChain​(java.lang.Object[] chain,
                                         K key,
                                         java.util.Map<K,​V> other)
      • retainAll

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

        public int size()
        Specified by:
        size in interface BatchIterable<K>
        Specified by:
        size in interface java.util.Collection<K>
        Specified by:
        size in interface java.util.Set<K>
      • copyKeys

        protected void copyKeys​(java.lang.Object[] result)
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface java.util.Collection<K>
        Specified by:
        equals in interface java.util.Set<K>
        Overrides:
        equals in class java.lang.Object
      • hashCode

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

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

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

        public <T> T[] toArray​(T[] result)
        Specified by:
        toArray in interface java.util.Collection<K>
        Specified by:
        toArray in interface java.util.Set<K>
      • writeReplace

        protected java.lang.Object writeReplace()
      • chainedAddToSet

        private void chainedAddToSet​(java.lang.Object[] chain,
                                     UnifiedSet<K> replace)