Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 139 for Tanghe (0.14 sec)

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

        assertTrue(rangeSet.intersects(Range.closed(3, 4)));
        assertTrue(rangeSet.intersects(Range.closedOpen(0, 2)));
        assertTrue(rangeSet.intersects(Range.closedOpen(3, 7)));
        assertTrue(rangeSet.intersects(Range.greaterThan(2)));
        assertFalse(rangeSet.intersects(Range.greaterThan(7)));
    
        assertTrue(rangeSet.encloses(Range.closed(3, 4)));
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Tue Feb 20 17:00:05 GMT 2024
    - 21.2K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/collect/RangeMap.java

      /**
       * Returns the range containing this key and its associated value, if such a range is present in
       * the range map, or {@code null} otherwise.
       */
      @CheckForNull
      Entry<Range<K>, V> getEntry(K key);
    
      /**
       * Returns the minimal range {@linkplain Range#encloses(Range) enclosing} the ranges in this
       * {@code RangeMap}.
       *
       * @throws NoSuchElementException if this range map is empty
       */
      Range<K> span();
    
      /**
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Feb 22 21:19:52 GMT 2024
    - 6.5K bytes
    - Viewed (0)
  3. guava/src/com/google/common/collect/ContiguousSet.java

       * Range#contains contained} by the range.
       *
       * @throws IllegalArgumentException if neither range nor the domain has a lower bound, or if
       *     neither has an upper bound
       * @since 13.0
       */
      public static <C extends Comparable> ContiguousSet<C> create(
          Range<C> range, DiscreteDomain<C> domain) {
        checkNotNull(range);
        checkNotNull(domain);
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Thu Nov 30 21:54:06 GMT 2023
    - 9.9K bytes
    - Viewed (0)
  4. 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());
        }
      }
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Feb 21 16:49:06 GMT 2024
    - 15.5K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/escape/ArrayBasedUnicodeEscaperTest.java

        // A surrogate pair defining a code point within the safe range.
        String safeInput = "\uD800\uDC00"; // 0x10000
        assertEquals(safeInput, surrogateEscaper.escape(safeInput));
    
        // A surrogate pair defining a code point outside the safe range (but both
        // of the surrogate characters lie within the safe range). It is important
        // not to accidentally treat this as a sequence of safe characters.
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 07 23:02:38 GMT 2024
    - 5K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/collect/BoundType.java

     * the License.
     */
    
    package com.google.common.collect;
    
    import com.google.common.annotations.GwtCompatible;
    
    /**
     * Indicates whether an endpoint of some range is contained in the range itself ("closed") or not
     * ("open"). If a range is unbounded on a side, it is neither open nor closed on that side; the
     * bound simply does not exist.
     *
     * @since 10.0
     */
    @GwtCompatible
    @ElementTypesAreNonnullByDefault
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Sep 20 15:57:47 GMT 2021
    - 1.4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/Sets.java

        }
        if (range.hasLowerBound() && range.hasUpperBound()) {
          return set.subSet(
              range.lowerEndpoint(),
              range.lowerBoundType() == BoundType.CLOSED,
              range.upperEndpoint(),
              range.upperBoundType() == BoundType.CLOSED);
        } else if (range.hasLowerBound()) {
          return set.tailSet(range.lowerEndpoint(), range.lowerBoundType() == BoundType.CLOSED);
        } else if (range.hasUpperBound()) {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed May 01 18:44:57 GMT 2024
    - 77.4K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/collect/CollectCollectors.java

              ImmutableSet.Builder::add,
              ImmutableSet.Builder::combine,
              ImmutableSet.Builder::build);
    
      @GwtIncompatible
      private static final Collector<Range<Comparable<?>>, ?, ImmutableRangeSet<Comparable<?>>>
          TO_IMMUTABLE_RANGE_SET =
              Collector.of(
                  ImmutableRangeSet::builder,
                  ImmutableRangeSet.Builder::add,
                  ImmutableRangeSet.Builder::combine,
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Feb 21 16:21:40 GMT 2024
    - 17.2K bytes
    - Viewed (0)
  9. android/guava-tests/benchmark/com/google/common/math/QuantilesBenchmark.java

    import com.google.common.collect.ImmutableSet;
    import com.google.common.collect.Range;
    import java.util.Random;
    
    /** Benchmarks some algorithms providing the same functionality as {@link Quantiles}. */
    public class QuantilesBenchmark {
    
      private static final ContiguousSet<Integer> ALL_DECILE_INDEXES =
          ContiguousSet.create(Range.closed(0, 10), DiscreteDomain.integers());
    
      @Param({"10", "100", "1000", "10000", "100000"})
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Mon Oct 10 19:45:10 GMT 2022
    - 3.1K bytes
    - Viewed (0)
  10. guava-testlib/src/com/google/common/testing/FreshValueGenerator.java

            return string;
          }
        };
      }
    
      @Empty
      static <C extends Comparable<?>> Range<C> generateRange() {
        return Range.all();
      }
    
      @Generates
      static <C extends Comparable<?>> Range<C> generateRange(C freshElement) {
        return Range.singleton(freshElement);
      }
    
      @Generates
      static <E> Iterable<E> generateIterable(@Nullable E freshElement) {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Apr 17 16:33:44 GMT 2024
    - 28.6K bytes
    - Viewed (0)
Back to top