Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 6 of 6 for encloseAll (0.08 sec)

  1. android/guava-tests/test/com/google/common/collect/RangeTest.java

      public void testEncloseAll() {
        assertEquals(Range.closed(0, 0), Range.encloseAll(asList(0)));
        assertEquals(Range.closed(-3, 5), Range.encloseAll(asList(5, -3)));
        assertEquals(Range.closed(-3, 5), Range.encloseAll(asList(1, 2, 2, 2, 5, -3, 0, -1)));
      }
    
      public void testEncloseAll_empty() {
        assertThrows(NoSuchElementException.class, () -> Range.encloseAll(ImmutableSet.<Integer>of()));
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 23.9K bytes
    - Viewed (0)
  2. guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          for (int i = 0; i < elements.size() - 1; i++) {
            assertEquals(elements.get(i) + 1, (int) elements.get(i + 1));
          }
          Range<Integer> range =
              elements.isEmpty() ? Range.closedOpen(0, 0) : Range.encloseAll(elements);
          return ContiguousSet.create(range, DiscreteDomain.integers());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  3. android/guava-testlib/src/com/google/common/collect/testing/google/SetGenerators.java

          for (int i = 0; i < elements.size() - 1; i++) {
            assertEquals(elements.get(i) + 1, (int) elements.get(i + 1));
          }
          Range<Integer> range =
              elements.isEmpty() ? Range.closedOpen(0, 0) : Range.encloseAll(elements);
          return ContiguousSet.create(range, DiscreteDomain.integers());
        }
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 15.6K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/collect/Range.java

       * @throws NoSuchElementException if {@code values} is empty
       * @throws NullPointerException if any of {@code values} is null
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> encloseAll(Iterable<C> values) {
        checkNotNull(values);
        if (values instanceof SortedSet) {
          SortedSet<C> set = (SortedSet<C>) values;
          Comparator<?> comparator = set.comparator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  5. guava/src/com/google/common/collect/Range.java

       * @throws NoSuchElementException if {@code values} is empty
       * @throws NullPointerException if any of {@code values} is null
       * @since 14.0
       */
      public static <C extends Comparable<?>> Range<C> encloseAll(Iterable<C> values) {
        checkNotNull(values);
        if (values instanceof SortedSet) {
          SortedSet<C> set = (SortedSet<C>) values;
          Comparator<?> comparator = set.comparator();
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 16 17:21:56 UTC 2024
    - 27.8K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/TreeRangeSetTest.java

              expectEnclose,
              rangeSet.encloses(query));
          assertEquals(
              rangeSet + " was incorrect on enclosesAll([" + query + "])",
              expectEnclose,
              rangeSet.enclosesAll(ImmutableList.of(query)));
        }
      }
    
      public void testAllSingleRangesComplementAgainstRemove() {
        for (Range<Integer> range : QUERY_RANGES) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 24.3K bytes
    - Viewed (0)
Back to top