Class ImmutableTreeMap.ImmutableSortedMapKeySet

  • All Implemented Interfaces:
    java.io.Serializable, java.lang.Iterable<K>, java.util.Collection<K>, java.util.Set<K>
    Enclosing class:
    ImmutableTreeMap<K,​V>

    protected class ImmutableTreeMap.ImmutableSortedMapKeySet
    extends java.util.AbstractSet<K>
    implements java.io.Serializable
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static long serialVersionUID  
    • 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 clear()  
      boolean contains​(java.lang.Object o)  
      boolean containsAll​(java.util.Collection<?> collection)  
      java.util.Iterator<K> iterator()  
      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[] a)  
      protected java.lang.Object writeReplace()  
      • Methods inherited from class java.util.AbstractSet

        equals, hashCode
      • Methods inherited from class java.util.AbstractCollection

        isEmpty, 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

        isEmpty, spliterator
    • Constructor Detail

      • ImmutableSortedMapKeySet

        protected ImmutableSortedMapKeySet()
    • Method Detail

      • 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>
        Overrides:
        contains in class java.util.AbstractCollection<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>
        Overrides:
        containsAll in class java.util.AbstractCollection<K>
      • size

        public int size()
        Specified by:
        size in interface java.util.Collection<K>
        Specified by:
        size in interface java.util.Set<K>
        Specified by:
        size in class java.util.AbstractCollection<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>
        Specified by:
        iterator in class java.util.AbstractCollection<K>
      • toArray

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

        public <T> T[] toArray​(T[] a)
        Specified by:
        toArray in interface java.util.Collection<K>
        Specified by:
        toArray in interface java.util.Set<K>
        Overrides:
        toArray in class java.util.AbstractCollection<K>
      • add

        public boolean add​(K key)
        Specified by:
        add in interface java.util.Collection<K>
        Specified by:
        add in interface java.util.Set<K>
        Overrides:
        add in class java.util.AbstractCollection<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>
        Overrides:
        addAll in class java.util.AbstractCollection<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>
        Overrides:
        remove in class java.util.AbstractCollection<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>
        Overrides:
        removeAll in class java.util.AbstractSet<K>
      • clear

        public void clear()
        Specified by:
        clear in interface java.util.Collection<K>
        Specified by:
        clear in interface java.util.Set<K>
        Overrides:
        clear in class java.util.AbstractCollection<K>
      • 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>
        Overrides:
        retainAll in class java.util.AbstractCollection<K>
      • writeReplace

        protected java.lang.Object writeReplace()