Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 16 for fromIndex (0.21 sec)

  1. android/guava/src/com/google/common/primitives/Doubles.java

       * Reverses the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex}
       * 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
       */
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 28.1K bytes
    - Viewed (0)
  2. android/guava/src/com/google/common/primitives/Longs.java

       * Sorts the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex}
       * exclusive in descending order.
       *
       * @since 23.1
       */
      public static void sortDescending(long[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        Arrays.sort(array, fromIndex, toIndex);
        reverse(array, fromIndex, toIndex);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 29.3K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/primitives/Ints.java

       * Sorts the elements of {@code array} between {@code fromIndex} inclusive and {@code toIndex}
       * exclusive in descending order.
       *
       * @since 23.1
       */
      public static void sortDescending(int[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        Arrays.sort(array, fromIndex, toIndex);
        reverse(array, fromIndex, toIndex);
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 31K bytes
    - Viewed (0)
  4. android/guava/src/com/google/common/primitives/UnsignedInts.java

      }
    
      /**
       * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
       * elements as unsigned 32-bit integers.
       *
       * @since 23.1
       */
      public static void sort(int[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  5. guava/src/com/google/common/primitives/UnsignedInts.java

      }
    
      /**
       * Sorts the array between {@code fromIndex} inclusive and {@code toIndex} exclusive, treating its
       * elements as unsigned 32-bit integers.
       *
       * @since 23.1
       */
      public static void sort(int[] array, int fromIndex, int toIndex) {
        checkNotNull(array);
        checkPositionIndexes(fromIndex, toIndex, array.length);
        for (int i = fromIndex; i < toIndex; i++) {
          array[i] = flip(array[i]);
        }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 21:17:54 UTC 2024
    - 13.7K bytes
    - Viewed (0)
  6. 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
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 43.1K bytes
    - Viewed (0)
  7. guava/src/com/google/common/collect/ImmutableRangeSet.java

          return ranges;
        }
    
        final int fromIndex;
        if (range.hasLowerBound()) {
          fromIndex =
              SortedLists.binarySearch(
                  ranges,
                  Range::upperBound,
                  range.lowerBound,
                  KeyPresentBehavior.FIRST_AFTER,
                  KeyAbsentBehavior.NEXT_HIGHER);
        } else {
          fromIndex = 0;
        }
    
        int toIndex;
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 27K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/ImmutableSortedMap.java

      }
    
      private ImmutableSortedMap<K, V> getSubMap(int fromIndex, int toIndex) {
        if (fromIndex == 0 && toIndex == size()) {
          return this;
        } else if (fromIndex == toIndex) {
          return emptyMap(comparator());
        } else {
          return new ImmutableSortedMap<>(
              keySet.getSubSet(fromIndex, toIndex), valueList.subList(fromIndex, toIndex));
        }
      }
    
      /**
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Wed Oct 30 16:15:19 UTC 2024
    - 50.4K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/primitives/ImmutableLongArray.java

          return target instanceof Long ? parent.lastIndexOf((Long) target) : -1;
        }
    
        @Override
        public List<Long> subList(int fromIndex, int toIndex) {
          return parent.subArray(fromIndex, toIndex).asList();
        }
    
        // The default List spliterator is not efficiently splittable
        @Override
        @SuppressWarnings("Java7ApiChecker")
        /*
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 22.3K bytes
    - Viewed (0)
  10. guava/src/com/google/common/primitives/ImmutableIntArray.java

          return target instanceof Integer ? parent.lastIndexOf((Integer) target) : -1;
        }
    
        @Override
        public List<Integer> subList(int fromIndex, int toIndex) {
          return parent.subArray(fromIndex, toIndex).asList();
        }
    
        // The default List spliterator is not efficiently splittable
        @Override
        public Spliterator<Integer> spliterator() {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Fri Oct 25 18:05:56 UTC 2024
    - 21.4K bytes
    - Viewed (0)
Back to top