Search Options

Results per page
Sort
Preferred Languages
Advance

Results 51 - 60 of 464 for subList (0.06 sec)

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

          for (int i = 0; i < minCopiesOfEachGoodQuery; i++) {
            queryList.addAll(elementsInSet);
          }
          List<Element> tmp = Lists.newArrayList(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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 23 16:45:30 UTC 2024
    - 36.8K bytes
    - Viewed (0)
  3. impl/maven-core/src/main/java/org/apache/maven/internal/impl/Graph.java

                } else if (state == DfsState.VISITING) {
                    // we are already visiting this vertex, this mean we have a cycle
                    int pos = cycle.lastIndexOf(v.label);
                    List<String> ret = cycle.subList(pos, cycle.size());
                    ret.add(v.label);
                    return ret;
                }
            }
            return null;
        }
    
        static class Vertex {
            final String label;
    Registered: Sun Nov 03 03:35:11 UTC 2024
    - Last Modified: Fri Oct 25 12:31:46 UTC 2024
    - 4.6K bytes
    - Viewed (0)
  4. android/guava-tests/test/com/google/common/primitives/CharsTest.java

        char[] array = {(char) 0, (char) 1, (char) 2, (char) 3};
        List<Character> list = Chars.asList(array);
        assertThat(Chars.toArray(list.subList(1, 3))).isEqualTo(new char[] {(char) 1, (char) 2});
        assertThat(Chars.toArray(list.subList(2, 2))).isEqualTo(new char[] {});
      }
    
      public void testAsListEmpty() {
        assertThat(Chars.asList(EMPTY)).isSameInstanceAs(Collections.emptyList());
      }
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 02:56:12 UTC 2024
    - 25.6K bytes
    - Viewed (0)
  5. 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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Mar 22 03:01:34 UTC 2022
    - 6.5K bytes
    - Viewed (0)
  6. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        // Changes after are not
        list.set(0, 5);
    
        assertEquals(ImmutableList.of(3, 4), first);
      }
    
      @J2ktIncompatible // Arrays.asList(...).subList() doesn't implement RandomAccess in J2KT.
      @GwtIncompatible // Arrays.asList(...).subList doesn't implement RandomAccess in GWT
      public void testPartitionRandomAccessInput() {
        Iterable<Integer> source = asList(1, 2, 3);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 19:12:33 UTC 2024
    - 45K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/ForwardingListTest.java

          return listIterator(0);
        }
    
        @Override
        public ListIterator<T> listIterator(int index) {
          return standardListIterator(index);
        }
    
        @Override
        public List<T> subList(int fromIndex, int toIndex) {
          return standardSubList(fromIndex, toIndex);
        }
      }
    
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  8. guava-tests/test/com/google/common/collect/ForwardingListTest.java

          return listIterator(0);
        }
    
        @Override
        public ListIterator<T> listIterator(int index) {
          return standardListIterator(index);
        }
    
        @Override
        public List<T> subList(int fromIndex, int toIndex) {
          return standardSubList(fromIndex, toIndex);
        }
      }
    
      public static Test suite() {
        TestSuite suite = new TestSuite();
    
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 15:49:06 UTC 2023
    - 5.9K bytes
    - Viewed (0)
  9. android/guava-testlib/src/com/google/common/collect/testing/OneSizeGenerator.java

        SampleElements<E> samples = samples();
        List<E> allSampleElements =
            asList(samples.e0(), samples.e1(), samples.e2(), samples.e3(), samples.e4());
        return new ArrayList<>(allSampleElements.subList(0, howMany));
      }
    
      @Override
      public CollectionSize getCollectionSize() {
        return collectionSize;
      }
    
      @Override
      public Iterable<E> order(List<E> insertionOrder) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Sat Oct 19 00:05:46 UTC 2024
    - 2.5K bytes
    - Viewed (0)
  10. guava-tests/test/com/google/common/collect/CollectionBenchmarkSampleData.java

          for (int i = 0; i < minCopiesOfEachGoodQuery; i++) {
            queryList.addAll(elementsInSet);
          }
          List<Element> tmp = Lists.newArrayList(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 Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top