Search Options

Results per page
Sort
Preferred Languages
Advance

Results 41 - 50 of 108 for SubList (0.03 sec)

  1. guava-testlib/src/com/google/common/collect/testing/testers/MapCreationTester.java

        return entries;
      }
    
      private void expectFirstRemoved(Entry<K, V>[] entries) {
        resetMap(entries);
    
        List<Entry<K, V>> expectedWithDuplicateRemoved = asList(entries).subList(1, getNumElements());
        expectContents(expectedWithDuplicateRemoved);
      }
    
      /**
       * Returns the {@link Method} instance for {@link #testCreateWithNullKeyUnsupported()} so that
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 5.6K bytes
    - Viewed (0)
  2. android/guava-tests/benchmark/com/google/common/util/concurrent/FuturesGetCheckedBenchmark.java

        Class<? extends Exception> exceptionType = this.exceptionType.exceptionType;
    
        for (Class<? extends Exception> exceptionClass :
            OTHER_EXCEPTION_TYPES.asList().subList(0, otherEntriesInDataStructure)) {
          getChecked(validator, immediateFuture(""), exceptionClass);
        }
    
        for (int i = 0; i < otherEntriesInDataStructure; i++) {
          ClassValue<Boolean> classValue =
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 6.5K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/DoublesTest.java

      public void testAsList_subList_toArray_roundTrip() {
        double[] array = {0.0, 1.0, 2.0, 3.0};
        List<Double> list = Doubles.asList(array);
        assertThat(Doubles.toArray(list.subList(1, 3))).isEqualTo(new double[] {1.0, 2.0});
        assertThat(Doubles.toArray(list.subList(2, 2))).isEmpty();
      }
    
      // `primitives` can't depend on `collect`, so this is what the prod code has to return.
      @SuppressWarnings("EmptyList")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 30.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

          for (int i = 0; i < minCopiesOfEachGoodQuery; i++) {
            queryList.addAll(elementsInSet);
          }
          List<Element> tmp = new ArrayList<>(elementsInSet);
          shuffle(tmp, random);
          queryList.addAll(tmp.subList(0, extras));
        }
    
        // now add bad queries
        while (queryList.size() < numQueries) {
          Element candidate = newElement();
          if (!elementsInSet.contains(candidate)) {
            queryList.add(candidate);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

          for (int i = 0; i < minCopiesOfEachGoodQuery; i++) {
            queryList.addAll(elementsInSet);
          }
          List<Element> tmp = new ArrayList<>(elementsInSet);
          shuffle(tmp, random);
          queryList.addAll(tmp.subList(0, extras));
        }
    
        // now add bad queries
        while (queryList.size() < numQueries) {
          Element candidate = newElement();
          if (!elementsInSet.contains(candidate)) {
            queryList.add(candidate);
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Tue May 13 17:27:14 UTC 2025
    - 4.2K bytes
    - Viewed (0)
  6. okhttp/src/jvmTest/kotlin/okhttp3/ConnectionCoalescingTest.kt

                connection.set(chain!!.connection())
                chain.proceed(chain.request())
              },
            ).build()
        dns["san.com"] = Dns.SYSTEM.lookup(server.hostName).subList(0, 1)
        assert200Http2Response(execute(url), server.hostName)
    
        // Simulate a stale connection in the pool.
        connection.get()!!.socket().close()
        val sanUrl = url.newBuilder().host("san.com").build()
    Registered: Fri Sep 05 11:42:10 UTC 2025
    - Last Modified: Thu Jun 19 11:44:16 UTC 2025
    - 19.1K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/math/StatsAccumulatorTest.java

        manyValuesAccumulatorByAddAndAddAll.addAll(MANY_VALUES.subList(1, MANY_VALUES.size()));
    
        manyValuesAccumulatorByAddAllStats = new StatsAccumulator();
        manyValuesAccumulatorByAddAllStats.addAll(
            Stats.of(MANY_VALUES.subList(0, MANY_VALUES.size() / 2)));
        manyValuesAccumulatorByAddAllStats.addAll(
            Stats.of(MANY_VALUES.subList(MANY_VALUES.size() / 2, MANY_VALUES.size())));
    
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Dec 19 18:03:30 UTC 2024
    - 36.9K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/primitives/Chars.java

      }
    
      /**
       * Reverses the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex}
       * exclusive. This is equivalent to {@code
       * Collections.reverse(Chars.asList(array).subList(fromIndex, toIndex))}, but is likely to be more
       * efficient.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
       *     {@code toIndex > fromIndex}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 24.2K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/Shorts.java

      }
    
      /**
       * Reverses the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex}
       * exclusive. This is equivalent to {@code
       * Collections.reverse(Shorts.asList(array).subList(fromIndex, toIndex))}, but is likely to be
       * more efficient.
       *
       * @throws IndexOutOfBoundsException if {@code fromIndex < 0}, {@code toIndex > array.length}, or
       *     {@code toIndex > fromIndex}
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 25.8K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/primitives/IntsTest.java

        int[] array = {(int) 0, (int) 1, (int) 2, (int) 3};
        List<Integer> list = Ints.asList(array);
        assertThat(Ints.toArray(list.subList(1, 3))).isEqualTo(new int[] {(int) 1, (int) 2});
        assertThat(Ints.toArray(list.subList(2, 2))).isEqualTo(new int[] {});
      }
    
      // `primitives` can't depend on `collect`, so this is what the prod code has to return.
      @SuppressWarnings("EmptyList")
    Registered: Fri Sep 05 12:43:10 UTC 2025
    - Last Modified: Thu Aug 07 16:05:33 UTC 2025
    - 29.2K bytes
    - Viewed (0)
Back to top