Search Options

Results per page
Sort
Preferred Languages
Advance

Results 21 - 30 of 101 for Lange (0.12 sec)

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

      }
    
      /**
       * Returns an immutable range set containing the specified single range. If {@link Range#isEmpty()
       * range.isEmpty()}, this is equivalent to {@link ImmutableRangeSet#of()}.
       */
      public static <C extends Comparable> ImmutableRangeSet<C> of(Range<C> range) {
        checkNotNull(range);
        if (range.isEmpty()) {
          return of();
        } else if (range.equals(Range.all())) {
          return all();
        } else {
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 26.9K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/ImmutableRangeSet.java

      }
    
      /**
       * Returns an immutable range set containing the specified single range. If {@link Range#isEmpty()
       * range.isEmpty()}, this is equivalent to {@link ImmutableRangeSet#of()}.
       */
      public static <C extends Comparable> ImmutableRangeSet<C> of(Range<C> range) {
        checkNotNull(range);
        if (range.isEmpty()) {
          return of();
        } else if (range.equals(Range.all())) {
          return all();
        } else {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 27.2K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/ImmutableRangeMap.java

          return null;
        } else {
          Range<K> range = ranges.get(index);
          return range.contains(key) ? Maps.immutableEntry(range, values.get(index)) : null;
        }
      }
    
      @Override
      public Range<K> span() {
        if (ranges.isEmpty()) {
          throw new NoSuchElementException();
        }
        Range<K> firstRange = ranges.get(0);
        Range<K> lastRange = ranges.get(ranges.size() - 1);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 14.5K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/collect/ImmutableRangeMapTest.java

            new ImmutableRangeMap.Builder<Integer, Integer>()
                .put(Range.closed(2, 4), 5)
                .put(Range.open(6, 7), 3)
                .put(Range.closedOpen(8, 10), 4)
                .put(Range.openClosed(15, 17), 2)
                .build();
    
        ImmutableMap<Range<Integer>, Integer> test = nonEmptyRangeMap.asMapOfRanges();
    
        for (Range<Integer> range : test.keySet()) {
          SerializableTester.reserializeAndAssert(range);
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.6K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/AbstractRangeSetTest.java

        for (Range<C> range : asRanges) {
          assertFalse(range.isEmpty());
        }
    
        // test that the RangeSet's span is the span of all the ranges
        Iterator<Range<C>> itr = rangeSet.asRanges().iterator();
        Range<C> expectedSpan = null;
        if (itr.hasNext()) {
          expectedSpan = itr.next();
          while (itr.hasNext()) {
            expectedSpan = expectedSpan.span(itr.next());
          }
        }
    
        try {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 20:09:59 GMT 2024
    - 2.6K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/util/concurrent/SimpleTimeLimiterTest.java

    import static java.util.concurrent.TimeUnit.MILLISECONDS;
    import static org.junit.Assert.assertThrows;
    
    import com.google.common.base.Stopwatch;
    import com.google.common.collect.Range;
    import java.util.concurrent.Callable;
    import java.util.concurrent.ExecutionException;
    import java.util.concurrent.ExecutorService;
    import java.util.concurrent.Executors;
    import java.util.concurrent.TimeoutException;
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 9.5K bytes
    - Viewed (0)
  7. guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(ImmutableSortedMap.of(2, 0), Maps.subMap(map, Range.open(0, 4)));
        assertEquals(ImmutableSortedMap.of(4, 0), Maps.subMap(map, Range.open(2, 6)));
        assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.open(3, 7)));
        assertEquals(empty, Maps.subMap(map, Range.open(20, 30)));
    
        assertEquals(map, Maps.subMap(map, Range.openClosed(0, 12)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 67.2K bytes
    - Viewed (0)
  8. android/guava-tests/test/com/google/common/collect/MapsTest.java

        assertEquals(ImmutableSortedMap.of(2, 0), Maps.subMap(map, Range.open(0, 4)));
        assertEquals(ImmutableSortedMap.of(4, 0), Maps.subMap(map, Range.open(2, 6)));
        assertEquals(ImmutableSortedMap.of(4, 0, 6, 0), Maps.subMap(map, Range.open(3, 7)));
        assertEquals(empty, Maps.subMap(map, Range.open(20, 30)));
    
        assertEquals(map, Maps.subMap(map, Range.openClosed(0, 12)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Mar 04 16:06:01 GMT 2024
    - 64.3K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/TopKSelector.java

      private final int k;
      private final Comparator<? super T> comparator;
    
      /*
       * We are currently considering the elements in buffer in the range [0, bufferSize) as candidates
       * for the top k elements. Whenever the buffer is filled, we quickselect the top k elements to the
       * range [0, k) and ignore the remaining elements.
       */
      private final @Nullable T[] buffer;
      private int bufferSize;
    
      /**
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 11.2K bytes
    - Viewed (0)
  10. android/guava-tests/test/com/google/common/escape/ArrayBasedCharEscaperTest.java

              protected char[] escapeUnsafe(char c) {
                return noChars;
              }
            };
        EscaperAsserts.assertBasic(deletingEscaper);
        assertEquals(
            "Everything outside the printable ASCII range is deleted.",
            deletingEscaper.escape(
                "\tEverything\0 outside the\uD800\uDC00 "
                    + "printable ASCII \uFFFFrange is \u007Fdeleted.\n"));
      }
    
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 3.5K bytes
    - Viewed (0)
Back to top