Home | History | Annotate | Download | only in collect

Lines Matching defs:ImmutableSortedMap

23 import com.google.common.collect.ImmutableSortedMap.Builder;
37 * Tests for {@link ImmutableSortedMap}.
82 return ImmutableSortedMap.of();
86 return ImmutableSortedMap.of("one", 1, "two", 2, "three", 3);
101 return ImmutableSortedMap.of("one", 1);
115 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
130 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
145 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
160 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
175 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
190 ImmutableSortedMap<String, Integer> map
191 = ImmutableSortedMap.<String, Integer>naturalOrder().build();
196 ImmutableSortedMap<String, Integer> map
197 = ImmutableSortedMap.<String, Integer>naturalOrder()
204 ImmutableSortedMap<String, Integer> map
205 = ImmutableSortedMap.<String, Integer>naturalOrder()
217 ImmutableSortedMap<String, Integer> map =
218 ImmutableSortedMap.<String, Integer>naturalOrder()
226 ImmutableSortedMap.naturalOrder();
244 ImmutableSortedMap.Builder<String, Integer> builder =
245 ImmutableSortedMap.naturalOrder();
263 ImmutableSortedMap<String, Integer> map
264 = ImmutableSortedMap.<String, Integer>naturalOrder()
279 ImmutableSortedMap<String, Integer> map
280 = ImmutableSortedMap.<String, Integer>naturalOrder()
289 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
290 ImmutableSortedMap<String, Integer> mapOne = builder
294 ImmutableSortedMap<String, Integer> mapTwo = builder
304 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
313 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
322 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
331 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
341 = ImmutableSortedMap.<String, Integer>naturalOrder()
354 ImmutableSortedMap.of("one", 1),
357 ImmutableSortedMap.of("one", 1, "two", 2),
360 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3),
363 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3, "four", 4),
366 ImmutableSortedMap.of(
374 ImmutableSortedMap.of(n, 1);
380 ImmutableSortedMap.of("one", 1, null, 2);
388 ImmutableSortedMap.of("one", null);
394 ImmutableSortedMap.of("one", 1, "two", null);
402 ImmutableSortedMap.of("one", 1, "one", 1);
409 ImmutableSortedMap<String, Integer> copy
410 = ImmutableSortedMap.copyOf(Collections.<String, Integer>emptyMap());
412 assertSame(copy, ImmutableSortedMap.copyOf(copy));
417 ImmutableSortedMap<String, Integer> copy
418 = ImmutableSortedMap.copyOf(Collections.singletonMap("one", 1));
420 assertSame(copy, ImmutableSortedMap.copyOf(copy));
430 ImmutableSortedMap<String, Integer> copy
431 = ImmutableSortedMap.copyOf(original);
433 assertSame(copy, ImmutableSortedMap.copyOf(copy));
444 ImmutableSortedMap<String, Integer> copy
445 = ImmutableSortedMap.copyOf(original, comparator);
447 assertSame(copy, ImmutableSortedMap.copyOf(copy, comparator));
454 = ImmutableSortedMap.of("one", 1, "two", 2, "three", 3);
455 ImmutableSortedMap<String, Integer> copy
456 = ImmutableSortedMap.copyOf(original, comparator);
458 assertSame(copy, ImmutableSortedMap.copyOf(copy, comparator));
468 ImmutableSortedMap<String, Integer> copy
469 = ImmutableSortedMap.copyOfSorted(original);
471 assertSame(copy, ImmutableSortedMap.copyOfSorted(copy));
482 ImmutableSortedMap<String, Integer> copy
483 = ImmutableSortedMap.copyOfSorted(original);
485 assertSame(copy, ImmutableSortedMap.copyOfSorted(copy));
516 ImmutableSortedMap.copyOf(original);
527 Map<IntegerDiv10, String> original = ImmutableSortedMap.of(
535 ImmutableSortedMap<String, Integer> map
536 = ImmutableSortedMap.<String, Integer>reverseOrder()
550 ImmutableSortedMap<String, Integer> map
551 = new ImmutableSortedMap.Builder<String, Integer>(comparator)
565 ImmutableSortedMap<String, Integer> map = ImmutableSortedMap.of("one", 1);
601 = ImmutableSortedMap.of("a", holderA, "b", holderB);
605 = ImmutableSortedMap.of("a", 3, "b", 2);
613 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", true);
622 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", false);
629 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).tailMap("three", true);
637 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).tailMap("three", false);
644 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", false);
651 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", false);
659 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", true);
667 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", true);
680 ImmutableSortedMap.Builder<SelfComparableExample, Object> natural =
681 ImmutableSortedMap.naturalOrder();
683 ImmutableSortedMap.Builder<SelfComparableExample, Object> reverse =
684 ImmutableSortedMap.reverseOrder();
690 ImmutableSortedMap.Builder<SuperComparableExample, Object> natural =
691 ImmutableSortedMap.naturalOrder();
693 ImmutableSortedMap.Builder<SuperComparableExample, Object> reverse =
694 ImmutableSortedMap.reverseOrder();