Home | History | Annotate | Download | only in collect

Lines Matching defs:ImmutableSortedMap

24 import com.google.common.collect.ImmutableSortedMap.Builder;
51 * Tests for {@link ImmutableSortedMap}.
74 .named("ImmutableSortedMap")
79 .named("ImmutableSortedMap.entrySet.asList")
88 .named("ImmutableSortedMap.keySet.asList")
97 .named("ImmutableSortedMap.values.asList")
142 return ImmutableSortedMap.of();
146 return ImmutableSortedMap.of("one", 1, "two", 2, "three", 3);
161 return ImmutableSortedMap.of("one", 1);
178 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3));
192 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
207 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
222 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
237 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
252 return ImmutableSortedMap.of("a", 1, "b", 2, "c", 3, "d", 4, "e", 5)
267 ImmutableSortedMap<String, Integer> map
268 = ImmutableSortedMap.<String, Integer>naturalOrder().build();
273 ImmutableSortedMap<String, Integer> map
274 = ImmutableSortedMap.<String, Integer>naturalOrder()
281 ImmutableSortedMap<String, Integer> map
282 = ImmutableSortedMap.<String, Integer>naturalOrder()
294 ImmutableSortedMap<String, Integer> map =
295 ImmutableSortedMap.<String, Integer>naturalOrder()
303 ImmutableSortedMap.naturalOrder();
321 ImmutableSortedMap.Builder<String, Integer> builder =
322 ImmutableSortedMap.naturalOrder();
340 ImmutableSortedMap<String, Integer> map
341 = ImmutableSortedMap.<String, Integer>naturalOrder()
356 ImmutableSortedMap<String, Integer> map
357 = ImmutableSortedMap.<String, Integer>naturalOrder()
366 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
367 ImmutableSortedMap<String, Integer> mapOne = builder
371 ImmutableSortedMap<String, Integer> mapTwo = builder
381 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
390 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
399 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
408 Builder<String, Integer> builder = ImmutableSortedMap.naturalOrder();
418 = ImmutableSortedMap.<String, Integer>naturalOrder()
431 ImmutableSortedMap.of("one", 1),
434 ImmutableSortedMap.of("one", 1, "two", 2),
437 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3),
440 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3, "four", 4),
443 ImmutableSortedMap.of(
451 ImmutableSortedMap.of(n, 1);
457 ImmutableSortedMap.of("one", 1, null, 2);
465 ImmutableSortedMap.of("one", null);
471 ImmutableSortedMap.of("one", 1, "two", null);
479 ImmutableSortedMap.of("one", 1, "one", 1);
486 ImmutableSortedMap<String, Integer> copy
487 = ImmutableSortedMap.copyOf(Collections.<String, Integer>emptyMap());
489 assertSame(copy, ImmutableSortedMap.copyOf(copy));
494 ImmutableSortedMap<String, Integer> copy
495 = ImmutableSortedMap.copyOf(Collections.singletonMap("one", 1));
497 assertSame(copy, ImmutableSortedMap.copyOf(copy));
507 ImmutableSortedMap<String, Integer> copy
508 = ImmutableSortedMap.copyOf(original);
510 assertSame(copy, ImmutableSortedMap.copyOf(copy));
521 ImmutableSortedMap<String, Integer> copy
522 = ImmutableSortedMap.copyOf(original, comparator);
524 assertSame(copy, ImmutableSortedMap.copyOf(copy, comparator));
531 = ImmutableSortedMap.of("one", 1, "two", 2, "three", 3);
532 ImmutableSortedMap<String, Integer> copy
533 = ImmutableSortedMap.copyOf(original, comparator);
535 assertSame(copy, ImmutableSortedMap.copyOf(copy, comparator));
545 ImmutableSortedMap<String, Integer> copy
546 = ImmutableSortedMap.copyOfSorted(original);
548 assertSame(copy, ImmutableSortedMap.copyOfSorted(copy));
559 ImmutableSortedMap<String, Integer> copy
560 = ImmutableSortedMap.copyOfSorted(original);
562 assertSame(copy, ImmutableSortedMap.copyOfSorted(copy));
593 ImmutableSortedMap.copyOf(original);
604 Map<IntegerDiv10, String> original = ImmutableSortedMap.of(
612 ImmutableSortedMap<String, Integer> map
613 = ImmutableSortedMap.<String, Integer>reverseOrder()
627 ImmutableSortedMap<String, Integer> map
628 = new ImmutableSortedMap.Builder<String, Integer>(comparator)
642 ImmutableSortedMap<String, Integer> map = ImmutableSortedMap.of("one", 1);
649 tester.testAllPublicStaticMethods(ImmutableSortedMap.class);
651 ImmutableSortedMap.<String, Integer>naturalOrder());
652 tester.testAllPublicInstanceMethods(ImmutableSortedMap.of());
653 tester.testAllPublicInstanceMethods(ImmutableSortedMap.of("one", 1));
655 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3));
690 = ImmutableSortedMap.of("a", holderA, "b", holderB);
694 = ImmutableSortedMap.of("a", 3, "b", 2);
702 = ImmutableSortedMap.of("one", 1, "two", 2, "three", 3);
712 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", true);
721 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).headMap("three", false);
728 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).tailMap("three", true);
736 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).tailMap("three", false);
743 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", false);
750 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", false);
758 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", false, "two", true);
766 ImmutableSortedMap.of("one", 1, "two", 2, "three", 3).subMap("one", true, "two", true);
779 ImmutableSortedMap.Builder<SelfComparableExample, Object> natural =
780 ImmutableSortedMap.naturalOrder();
782 ImmutableSortedMap.Builder<SelfComparableExample, Object> reverse =
783 ImmutableSortedMap.reverseOrder();
789 ImmutableSortedMap.Builder<SuperComparableExample, Object> natural =
790 ImmutableSortedMap.naturalOrder();
792 ImmutableSortedMap.Builder<SuperComparableExample, Object> reverse =
793 ImmutableSortedMap.reverseOrder();