Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 47 for skip (0.14 sec)

  1. android/guava/src/com/google/common/collect/Iterables.java

       *
       * <p><b>{@code Stream} equivalent:</b> {@link Stream#skip}
       *
       * @since 3.0
       */
      public static <T extends @Nullable Object> Iterable<T> skip(
          final Iterable<T> iterable, final int numberToSkip) {
        checkNotNull(iterable);
        checkArgument(numberToSkip >= 0, "number to skip cannot be negative");
    
        return new FluentIterable<T>() {
          @Override
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Wed Apr 24 19:38:27 GMT 2024
    - 42.8K bytes
    - Viewed (0)
  2. android/guava-tests/test/com/google/common/collect/FluentIterableTest.java

        assertEquals("[c, d, e]", FluentIterable.from(set).skip(2).toString());
      }
    
      public void testSkip_simpleList() {
        Collection<String> list = Lists.newArrayList("a", "b", "c", "d", "e");
        assertEquals(
            Lists.newArrayList("c", "d", "e"), Lists.newArrayList(FluentIterable.from(list).skip(2)));
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Tue Jun 06 17:32:08 GMT 2023
    - 30.6K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/math/Quantiles.java

        // ...then recursively perform the selections in the range below...
        int requiredBelow = requiredChosen - 1;
        while (requiredBelow >= requiredFrom && allRequired[requiredBelow] == required) {
          requiredBelow--; // skip duplicates of required in the range below
        }
        if (requiredBelow >= requiredFrom) {
          selectAllInPlace(allRequired, requiredFrom, requiredBelow, array, from, required - 1);
        }
    
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Fri May 12 17:02:53 GMT 2023
    - 29.9K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/io/ByteSourceTest.java

        assertEquals(bytes.length, source.size());
        assertTrue(source.wasStreamOpened() && source.wasStreamClosed());
    
        // test that we can get the size even if skip() isn't supported
        assertEquals(bytes.length, new TestByteSource(bytes, SKIP_THROWS).size());
    
        // test that we can get the size even if available() always returns zero
        assertEquals(bytes.length, new TestByteSource(bytes, AVAILABLE_ALWAYS_ZERO).size());
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Wed Sep 06 17:04:31 GMT 2023
    - 16.9K bytes
    - Viewed (0)
  5. guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(newArrayList("c", "d", "e"), newArrayList(skip(set, 2)));
        assertEquals("[c, d, e]", skip(set, 2).toString());
      }
    
      public void testSkip_simpleList() {
        Collection<String> list = newArrayList("a", "b", "c", "d", "e");
        assertEquals(newArrayList("c", "d", "e"), newArrayList(skip(list, 2)));
        assertEquals("[c, d, e]", skip(list, 2).toString());
      }
    
      public void testSkip_pastEnd() {
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 47.5K bytes
    - Viewed (0)
  6. guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

          for (int startIndex = 0;
              startIndex < distinctCandidatesByAscendingSize.size();
              startIndex++) {
            Iterable<ImmutableSet<String>> infiniteSetsFromStartIndex =
                Iterables.skip(infiniteSets, startIndex);
            for (boolean inputIsSet : new boolean[] {true, false}) {
              Collection<String> input =
                  inputIsSet
                      ? new MutatedOnQuerySet<>(infiniteSetsFromStartIndex)
    Java
    - Registered: Fri Apr 19 12:43:09 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/collect/AbstractImmutableSetTest.java

          for (int startIndex = 0;
              startIndex < distinctCandidatesByAscendingSize.size();
              startIndex++) {
            Iterable<ImmutableSet<String>> infiniteSetsFromStartIndex =
                Iterables.skip(infiniteSets, startIndex);
            for (boolean inputIsSet : new boolean[] {true, false}) {
              Collection<String> input =
                  inputIsSet
                      ? new MutatedOnQuerySet<>(infiniteSetsFromStartIndex)
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 18.7K bytes
    - Viewed (0)
  8. android/guava/src/com/google/common/io/ByteStreams.java

              // is smaller.
              buf = new byte[skip];
            }
            if ((skipped = in.read(buf, 0, skip)) == -1) {
              // Reached EOF
              break;
            }
          }
    
          totalSkipped += skipped;
        }
    
        return totalSkipped;
      }
    
      /**
       * Attempts to skip up to {@code n} bytes from the given input stream, but not more than {@code
    Java
    - Registered: Fri Apr 26 12:43:10 GMT 2024
    - Last Modified: Wed Jan 17 18:59:58 GMT 2024
    - 29.7K bytes
    - Viewed (0)
  9. android/guava-tests/test/com/google/common/collect/IterablesTest.java

        assertEquals(newArrayList("c", "d", "e"), newArrayList(skip(set, 2)));
        assertEquals("[c, d, e]", skip(set, 2).toString());
      }
    
      public void testSkip_simpleList() {
        Collection<String> list = newArrayList("a", "b", "c", "d", "e");
        assertEquals(newArrayList("c", "d", "e"), newArrayList(skip(list, 2)));
        assertEquals("[c, d, e]", skip(list, 2).toString());
      }
    
      public void testSkip_pastEnd() {
    Java
    - Registered: Fri May 03 12:43:13 GMT 2024
    - Last Modified: Thu Mar 07 18:34:03 GMT 2024
    - 46K bytes
    - Viewed (0)
  10. guava/src/com/google/common/collect/Collections2.java

          calculateNextPermutation();
          return next;
        }
    
        void calculateNextPermutation() {
          j = list.size() - 1;
          int s = 0;
    
          // Handle the special case of an empty list. Skip the calculation of the
          // next permutation.
          if (j == -1) {
            return;
          }
    
          while (true) {
            int q = c[j] + o[j];
            if (q < 0) {
              switchDirection();
    Java
    - Registered: Fri Apr 05 12:43:09 GMT 2024
    - Last Modified: Mon Apr 01 16:15:01 GMT 2024
    - 23.1K bytes
    - Viewed (0)
Back to top