Lines Matching refs:Sets
485 copyOf(Sets.newTreeSet(asList("e", "a", "f", "b", "d", "c")));
490 SortedSet<String> set = copyOf(Sets.<String>newTreeSet());
539 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH);
546 SortedSet<String> input = Sets.newTreeSet(
554 Sets.newTreeSet(asList("in", "the", "quick", "jumped", "over", "a"));
560 SortedSet<String> input = Sets.newTreeSet(STRING_LENGTH);
569 assertEquals(set, Sets.newTreeSet(asList("a", "b", "c")));
570 assertEquals(Sets.newTreeSet(asList("a", "b", "c")), set);
571 assertFalse(set.equals(Sets.newTreeSet(asList("a", "b", "d"))));
572 assertFalse(Sets.newTreeSet(asList("a", "b", "d")).equals(set));
573 assertFalse(set.equals(Sets.newHashSet(4, 5, 6)));
574 assertFalse(Sets.newHashSet(4, 5, 6).equals(set));
579 assertEquals(Sets.newTreeSet(asList("in", "the", "a")), set);
580 assertFalse(set.equals(Sets.newTreeSet(asList("in", "the", "house"))));
581 assertFalse(Sets.newTreeSet(asList("in", "the", "house")).equals(set));
582 assertFalse(set.equals(Sets.newHashSet(4, 5, 6)));
583 assertFalse(Sets.newHashSet(4, 5, 6).equals(set));
585 Set<String> complex = Sets.newTreeSet(STRING_LENGTH);
592 assertFalse(set.equals(Sets.newTreeSet(asList(4, 5, 6))));
593 assertNotEqualLenient(Sets.newTreeSet(asList(4, 5, 6)), set);
598 assertFalse(set.equals(Sets.newTreeSet(asList(4, 5, 6))));
599 assertNotEqualLenient(Sets.newTreeSet(asList(4, 5, 6)), set);
617 assertTrue(set.containsAll(Sets.newTreeSet()));
618 assertTrue(set.containsAll(Sets.newTreeSet(asList("b"))));
619 assertTrue(set.containsAll(Sets.newTreeSet(asList("a", "f"))));
620 assertTrue(set.containsAll(Sets.newTreeSet(asList("a", "b", "f"))));
621 assertFalse(set.containsAll(Sets.newTreeSet(asList("d"))));
622 assertFalse(set.containsAll(Sets.newTreeSet(asList("z"))));
623 assertFalse(set.containsAll(Sets.newTreeSet(asList("b", "d"))));
624 assertFalse(set.containsAll(Sets.newTreeSet(asList("f", "d", "a"))));
629 SortedSet<Integer> unexpected = Sets.newTreeSet(Ordering.natural());
638 assertTrue(set.containsAll(Sets.newTreeSet()));
639 assertTrue(set.containsAll(Sets.newTreeSet(asList("b"))));
640 assertTrue(set.containsAll(Sets.newTreeSet(asList("a", "f"))));
641 assertTrue(set.containsAll(Sets.newTreeSet(asList("a", "b", "f"))));
642 assertFalse(set.containsAll(Sets.newTreeSet(asList("d"))));
643 assertFalse(set.containsAll(Sets.newTreeSet(asList("z"))));
644 assertFalse(set.containsAll(Sets.newTreeSet(asList("b", "d"))));
645 assertFalse(set.containsAll(Sets.newTreeSet(asList("f", "d", "a"))));