Class SmallSortedMap.EmptySet

  • Enclosing class:
    SmallSortedMap<K extends java.lang.Comparable<K>,​V>

    private static class SmallSortedMap.EmptySet
    extends java.lang.Object
    Helper class that holds immutable instances of an Iterable/Iterator that we return when the overflow entries is empty. This eliminates the creation of an Iterator object when there is nothing to iterate over.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.Iterable<java.lang.Object> ITERABLE  
      private static java.util.Iterator<java.lang.Object> ITERATOR  
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private EmptySet()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      (package private) static <T> java.lang.Iterable<T> iterable()  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • ITERATOR

        private static final java.util.Iterator<java.lang.Object> ITERATOR
      • ITERABLE

        private static final java.lang.Iterable<java.lang.Object> ITERABLE
    • Constructor Detail

      • EmptySet

        private EmptySet()
    • Method Detail

      • iterable

        static <T> java.lang.Iterable<T> iterable()