Search Options

Results per page
Sort
Preferred Languages
Advance

Results 11 - 20 of 52 for ImmutableSortedSet (0.15 sec)

  1. guava/src/com/google/common/collect/CollectCollectors.java

      }
    
      static <E> Collector<E, ?, ImmutableSortedSet<E>> toImmutableSortedSet(
          Comparator<? super E> comparator) {
        checkNotNull(comparator);
        return Collector.of(
            () -> new ImmutableSortedSet.Builder<E>(comparator),
            ImmutableSortedSet.Builder::add,
            ImmutableSortedSet.Builder::combine,
            ImmutableSortedSet.Builder::build);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Jul 17 15:26:41 UTC 2025
    - 16.6K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/TreeMultimapNaturalTest.java

                            mapEntry("a", (Collection<String>) ImmutableSortedSet.of("alex")),
                            mapEntry("b", (Collection<String>) ImmutableSortedSet.of("bob", "bagel")),
                            mapEntry("c", (Collection<String>) ImmutableSortedSet.of("carl", "carol")),
                            mapEntry("d", (Collection<String>) ImmutableSortedSet.of("david", "dead")),
                            mapEntry(
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 22.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertTrue(multimap.get("a") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("a")).comparator());
        assertTrue(multimap.get("x") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("x")).comparator());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 27K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/FauxveridesTest.java

        assertThrows(ClassCastException.class, () -> ImmutableSortedSet.copyOf(original));
      }
    
      public void testImmutableSortedSetCopyOfIterator() {
        // false positive: `new Object()` is not equal to `new Object()`
        @SuppressWarnings("DistinctVarargsChecker")
        Set<Object> original = ImmutableSet.of(new Object(), new Object());
    
        assertThrows(ClassCastException.class, () -> ImmutableSortedSet.copyOf(original.iterator()));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue Jul 08 18:32:10 UTC 2025
    - 9.4K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/ImmutableSetMultimapTest.java

        assertTrue(multimap.get("a") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("a")).comparator());
        assertTrue(multimap.get("x") instanceof ImmutableSortedSet);
        assertEquals(
            Collections.reverseOrder(), ((ImmutableSortedSet<Integer>) multimap.get("x")).comparator());
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 28.7K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/ImmutableRangeSetTest.java

                .build();
    
        assertThat(RANGE_SET_ONE.difference(RANGE_SET_TWO)).isEqualTo(expected);
      }
    
      public void testAsSet() {
        ImmutableSortedSet<Integer> expectedSet = ImmutableSortedSet.of(2, 3, 4, 8, 9, 16, 17);
        ImmutableSortedSet<Integer> asSet = RANGE_SET_ONE.asSet(DiscreteDomain.integers());
        assertEquals(expectedSet, asSet);
        assertThat(asSet).containsExactlyElementsIn(expectedSet).inOrder();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Sat Jan 25 16:19:30 UTC 2025
    - 21.7K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/ContiguousSetTest.java

                ContiguousSet.create(Range.open(0, 4), NOT_EQUAL_TO_INTEGERS),
                ImmutableSortedSet.of(1, 2, 3))
            .addEqualityGroup(
                ContiguousSet.create(Range.closedOpen(1, 1), integers()),
                ContiguousSet.closedOpen(1, 1),
                ContiguousSet.closedOpen(Integer.MIN_VALUE, Integer.MIN_VALUE),
                ImmutableSortedSet.of(),
                ImmutableSet.of())
            .testEquals();
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 19.6K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/RangeTest.java

        // path, so we test that separately
        assertTrue(range.containsAll(ImmutableSortedSet.of(3, 3, 4, 5)));
        assertTrue(range.containsAll(ImmutableSortedSet.of(3)));
        assertTrue(range.containsAll(ImmutableSortedSet.<Integer>of()));
        assertFalse(range.containsAll(ImmutableSortedSet.of(3, 3, 4, 5, 6)));
    
        assertTrue(Range.openClosed(3, 3).containsAll(Collections.<Integer>emptySet()));
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.1K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/testing/ArbitraryInstances.java

              .put(ImmutableList.class, ImmutableList.of())
              .put(Set.class, ImmutableSet.of())
              .put(ImmutableSet.class, ImmutableSet.of())
              .put(SortedSet.class, ImmutableSortedSet.of())
              .put(ImmutableSortedSet.class, ImmutableSortedSet.of())
              .put(NavigableSet.class, Sets.unmodifiableNavigableSet(Sets.newTreeSet()))
              .put(Map.class, ImmutableMap.of())
              .put(ImmutableMap.class, ImmutableMap.of())
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Wed Jul 16 17:42:14 UTC 2025
    - 20.9K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/ImmutableSetMultimap.java

        return (valueComparator == null)
            ? ImmutableSet.copyOf(values)
            : ImmutableSortedSet.copyOf(valueComparator, values);
      }
    
      private static <V> ImmutableSet<V> emptySet(@Nullable Comparator<? super V> valueComparator) {
        return (valueComparator == null)
            ? ImmutableSet.<V>of()
            : ImmutableSortedSet.<V>emptySet(valueComparator);
      }
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
Back to top