Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 10 of 73 for toIndex (0.07 seconds)

  1. guava/src/com/google/common/collect/SingletonImmutableList.java

      }
    
      @Override
      public int size() {
        return 1;
      }
    
      @Override
      public ImmutableList<E> subList(int fromIndex, int toIndex) {
        Preconditions.checkPositionIndexes(fromIndex, toIndex, 1);
        return (fromIndex == toIndex) ? ImmutableList.of() : this;
      }
    
      @Override
      public String toString() {
        return '[' + element.toString() + ']';
      }
    
      @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Sep 22 21:07:18 GMT 2025
    - 2.3K bytes
    - Click Count (0)
  2. android/guava/src/com/google/common/collect/Lists.java

        }
    
        @Override
        public ImmutableList<Character> subList(int fromIndex, int toIndex) {
          checkPositionIndexes(fromIndex, toIndex, size()); // for GWT
          return charactersOf(string.substring(fromIndex, toIndex));
        }
    
        @Override
        boolean isPartialView() {
          return false;
        }
    
        @Override
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Feb 23 16:38:09 GMT 2026
    - 42.1K bytes
    - Click Count (0)
  3. android/guava/src/com/google/common/primitives/Bytes.java

        }
    
        @Override
        public List<Byte> subList(int fromIndex, int toIndex) {
          int size = size();
          checkPositionIndexes(fromIndex, toIndex, size);
          if (fromIndex == toIndex) {
            return Collections.emptyList();
          }
          return new ByteArrayAsList(array, start + fromIndex, start + toIndex);
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Jul 17 15:26:41 GMT 2025
    - 15.6K bytes
    - Click Count (0)
  4. android/guava/src/com/google/common/primitives/Floats.java

       * exclusive. This is equivalent to {@code
       * Collections.reverse(Floats.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}
       * @since 23.1
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 25.6K bytes
    - Click Count (0)
  5. android/guava/src/com/google/common/primitives/Doubles.java

       * exclusive. This is equivalent to {@code
       * Collections.reverse(Doubles.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}
       * @since 23.1
       */
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 27.8K bytes
    - Click Count (0)
  6. android/guava/src/com/google/common/primitives/Chars.java

       * exclusive in descending order.
       *
       * @since 23.1
       */
      public static void sortDescending(char[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        Arrays.sort(array, fromIndex, toIndex);
        reverse(array, fromIndex, toIndex);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Aug 07 16:05:33 GMT 2025
    - 24.2K bytes
    - Click Count (0)
  7. android/guava/src/com/google/common/primitives/Booleans.java

        }
    
        @Override
        public List<Boolean> subList(int fromIndex, int toIndex) {
          int size = size();
          checkPositionIndexes(fromIndex, toIndex, size);
          if (fromIndex == toIndex) {
            return Collections.emptyList();
          }
          return new BooleanArrayAsList(array, start + fromIndex, start + toIndex);
        }
    
        @Override
        public boolean equals(@Nullable Object object) {
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Thu Sep 25 15:01:23 GMT 2025
    - 20.6K bytes
    - Click Count (0)
  8. android/guava/src/com/google/common/primitives/Shorts.java

       * exclusive in descending order.
       *
       * @since 23.1
       */
      public static void sortDescending(short[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        Arrays.sort(array, fromIndex, toIndex);
        reverse(array, fromIndex, toIndex);
      }
    
      /**
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Wed Oct 22 18:14:49 GMT 2025
    - 25.7K bytes
    - Click Count (0)
  9. okhttp/src/commonJvmAndroid/kotlin/okhttp3/MultipartReader.kt

         */
        private fun currentPartBytesRemaining(maxByteCount: Long): Long {
          val toIndex = minOf(source.buffer.size, maxByteCount) + 1L
          val boundaryIndex =
            source.indexOf(
              bytes = crlfDashDashBoundary,
              fromIndex = 0L,
              toIndex = toIndex,
            )
          return when {
            boundaryIndex != -1L -> boundaryIndex
    
            // We found the boundary.
    Created: Fri Apr 03 11:42:14 GMT 2026
    - Last Modified: Tue Jan 27 09:00:39 GMT 2026
    - 7.3K bytes
    - Click Count (0)
  10. android/guava/src/com/google/common/primitives/UnsignedBytes.java

      /**
       * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
       * elements as unsigned bytes.
       *
       * @since 23.1
       */
      public static void sort(byte[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
    Created: Fri Apr 03 12:43:13 GMT 2026
    - Last Modified: Mon Mar 23 16:38:16 GMT 2026
    - 21K bytes
    - Click Count (0)
Back to Top