Class TreeBasedTable.Factory<C,​V>

  • All Implemented Interfaces:
    Supplier<java.util.TreeMap<C,​V>>, java.io.Serializable, java.util.function.Supplier<java.util.TreeMap<C,​V>>
    Enclosing class:
    TreeBasedTable<R,​C,​V>

    private static class TreeBasedTable.Factory<C,​V>
    extends java.lang.Object
    implements Supplier<java.util.TreeMap<C,​V>>, java.io.Serializable
    • Field Summary

      Fields 
      Modifier and Type Field Description
      (package private) java.util.Comparator<? super C> comparator  
      private static long serialVersionUID  
    • Constructor Summary

      Constructors 
      Constructor Description
      Factory​(java.util.Comparator<? super C> comparator)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.util.TreeMap<C,​V> get()
      Retrieves an instance of the appropriate type.
      • Methods inherited from class java.lang.Object

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

      • comparator

        final java.util.Comparator<? super C> comparator
    • Constructor Detail

      • Factory

        Factory​(java.util.Comparator<? super C> comparator)
    • Method Detail

      • get

        public java.util.TreeMap<C,​V> get()
        Description copied from interface: Supplier
        Retrieves an instance of the appropriate type. The returned object may or may not be a new instance, depending on the implementation.
        Specified by:
        get in interface Supplier<C>
        Specified by:
        get in interface java.util.function.Supplier<C>
        Returns:
        an instance of the appropriate type