Search Options

Results per page
Sort
Preferred Languages
Advance

Results 111 - 120 of 1,745 for sublist (0.17 sec)

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

        array[getNumElements() + 1] = e3();
        assertSame(
            "toArray(overSizedE[]) should return the given array", array, collection.toArray(array));
    
        List<E> subArray = Arrays.asList(array).subList(0, getNumElements());
        E[] expectedSubArray = createSamplesArray();
        for (int i = 0; i < getNumElements(); i++) {
          assertTrue(
              "toArray(overSizedE[]) should contain element " + expectedSubArray[i],
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  2. guava/src/com/google/common/collect/MoreCollectors.java

              extras = new ArrayList<>();
            }
            extras.add(other.element);
            extras.addAll(other.extras);
            if (extras.size() > MAX_EXTRAS) {
              extras.subList(MAX_EXTRAS, extras.size()).clear();
              throw multiples(true);
            }
            return this;
          }
        }
    
        Optional<Object> getOptional() {
          if (extras.isEmpty()) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Dec 13 02:09:05 UTC 2022
    - 5.4K bytes
    - Viewed (0)
  3. android/guava-tests/test/com/google/common/primitives/ShortsTest.java

        short[] array = {(short) 0, (short) 1, (short) 2, (short) 3};
        List<Short> list = Shorts.asList(array);
        assertThat(Shorts.toArray(list.subList(1, 3))).isEqualTo(new short[] {(short) 1, (short) 2});
        assertThat(Shorts.toArray(list.subList(2, 2))).isEqualTo(new short[] {});
      }
    
      public void testAsListEmpty() {
        assertThat(Shorts.asList(EMPTY)).isSameInstanceAs(Collections.emptyList());
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 29 15:43:06 UTC 2024
    - 26.6K bytes
    - Viewed (0)
  4. platforms/native/language-native/src/main/java/org/gradle/language/nativeplatform/internal/incremental/DefaultSourceIncludesResolver.java

                visitor.visitUnresolved();
                return;
            }
            Expression argListExpression = expressions.get(expressions.size() - 1);
            List<Expression> headExpressions = expressions.subList(0, expressions.size() - 1);
            Collection<Expression> args = resolveExpressionToTokens(visibleMacros, argListExpression, visitor, tokenLookup);
            for (Expression value : args) {
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Thu Nov 16 20:20:03 UTC 2023
    - 24.4K bytes
    - Viewed (0)
  5. guava-testlib/src/com/google/common/collect/testing/testers/CollectionToArrayTester.java

        array[getNumElements() + 1] = e3();
        assertSame(
            "toArray(overSizedE[]) should return the given array", array, collection.toArray(array));
    
        List<E> subArray = Arrays.asList(array).subList(0, getNumElements());
        E[] expectedSubArray = createSamplesArray();
        for (int i = 0; i < getNumElements(); i++) {
          assertTrue(
              "toArray(overSizedE[]) should contain element " + expectedSubArray[i],
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 7.9K bytes
    - Viewed (0)
  6. platforms/core-execution/persistent-cache/src/main/java/org/gradle/cache/internal/btree/FreeListBlockStore.java

                    newBlock.nextBlock = nextBlock;
                    newBlock.prev = this;
                    newBlock.next = next;
                    next = newBlock;
    
                    List<FreeListEntry> newBlockEntries = entries.subList(0, entries.size() / 2);
                    newBlock.entries.addAll(newBlockEntries);
                    newBlockEntries.clear();
                    largestInNextBlock = newBlock.entries.get(newBlock.entries.size() - 1).size;
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 26 16:02:32 UTC 2024
    - 8.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/io/CharSourceTester.java

                    return list;
                  }
                });
    
        if (expectedLines.isEmpty()) {
          assertTrue(list.isEmpty());
        } else {
          assertEquals(expectedLines.subList(0, 1), list);
        }
      }
    
      private void assertExpectedString(String string) {
        assertEquals(expected, string);
      }
    
      private void assertExpectedLines(List<String> list) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Oct 10 19:45:10 UTC 2022
    - 6.8K 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  9. 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: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/collect/RegularImmutableSortedSet.java

        if (newFromIndex == 0 && newToIndex == size()) {
          return this;
        } else if (newFromIndex < newToIndex) {
          return new RegularImmutableSortedSet<>(
              elements.subList(newFromIndex, newToIndex), comparator);
        } else {
          return emptySet(comparator);
        }
      }
    
      @Override
      int indexOf(@CheckForNull Object target) {
        if (target == null) {
          return -1;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Mon Apr 01 16:15:01 UTC 2024
    - 9K bytes
    - Viewed (0)
Back to top