• Home
  • Raw
  • Download

Lines Matching refs:K

72 public class TreeMultimap<K, V> extends AbstractSortedSetMultimap<K, V> {
73 private transient Comparator<? super K> keyComparator;
81 public static <K extends Comparable, V extends Comparable>
82 TreeMultimap<K, V> create() { in create()
83 return new TreeMultimap<K, V>(Ordering.natural(), Ordering.natural()); in create()
94 public static <K, V> TreeMultimap<K, V> create( in create()
95 Comparator<? super K> keyComparator, in create()
97 return new TreeMultimap<K, V>(checkNotNull(keyComparator), in create()
108 public static <K extends Comparable, V extends Comparable>
109 TreeMultimap<K, V> create(Multimap<? extends K, ? extends V> multimap) { in create() argument
110 return new TreeMultimap<K, V>(Ordering.natural(), Ordering.natural(), in create()
122 TreeMultimap(@Nullable Comparator<? super K> keyComparator, in TreeMultimap()
125 ? new TreeMap<K, Collection<V>>() in TreeMultimap()
126 : new TreeMap<K, Collection<V>>(keyComparator)); in TreeMultimap()
131 private TreeMultimap(Comparator<? super K> keyComparator, in TreeMultimap()
133 Multimap<? extends K, ? extends V> multimap) { in TreeMultimap() argument
154 public Comparator<? super K> keyComparator() { in keyComparator()
169 @Override public SortedSet<K> keySet() { in keySet()
170 return (SortedSet<K>) super.keySet(); in keySet()
180 @Override public SortedMap<K, Collection<V>> asMap() { in asMap()
181 return (SortedMap<K, Collection<V>>) super.asMap(); in asMap()
200 keyComparator = (Comparator<? super K>) stream.readObject(); in readObject()
202 setMap(new TreeMap<K, Collection<V>>(keyComparator)); in readObject()