Search Options

Results per page
Sort
Preferred Languages
Advance

Results 71 - 80 of 195 for index (0.05 sec)

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

              return i - start;
            }
          }
          return -1;
        }
    
        @Override
        public Short set(int index, Short element) {
          checkElementIndex(index, size());
          short oldValue = array[start + index];
          // checkNotNull for GWT (do not optimize)
          array[start + index] = checkNotNull(element);
          return oldValue;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  2. guava/src/com/google/common/primitives/Shorts.java

              return i - start;
            }
          }
          return -1;
        }
    
        @Override
        public Short set(int index, Short element) {
          checkElementIndex(index, size());
          short oldValue = array[start + index];
          // checkNotNull for GWT (do not optimize)
          array[start + index] = checkNotNull(element);
          return oldValue;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 25.1K bytes
    - Viewed (0)
  3. android/guava/src/com/google/common/collect/RegularImmutableSet.java

      private final transient int hashCode;
      // the same values as `elements` in hashed positions (plus nulls)
      @VisibleForTesting final transient @Nullable Object[] table;
      // 'and' with an int to get a valid table index.
      private final transient int mask;
      private final transient int size;
    
      RegularImmutableSet(
          @Nullable Object[] elements, int hashCode, @Nullable Object[] table, int mask, int size) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  4. guava/src/com/google/common/collect/Streams.java

      }
    
      private abstract static class MapWithIndexSpliterator<
              F extends Spliterator<?>,
              R extends @Nullable Object,
              S extends MapWithIndexSpliterator<F, R, S>>
          implements Spliterator<R> {
        final F fromSpliterator;
        long index;
    
        MapWithIndexSpliterator(F fromSpliterator, long index) {
          this.fromSpliterator = fromSpliterator;
          this.index = index;
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 36.5K bytes
    - Viewed (0)
  5. android/guava-testlib/src/com/google/common/collect/testing/testers/ListSetTester.java

      }
    
      private void doTestSet(E newValue) {
        int index = aValidIndex();
        E initialValue = getList().get(index);
        assertEquals(
            "set(i, x) should return the old element at position i.",
            initialValue,
            getList().set(index, newValue));
        assertEquals("After set(i, x), get(i) should return x", newValue, getList().get(index));
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Wed Feb 21 16:49:06 UTC 2024
    - 5.3K bytes
    - Viewed (0)
  6. guava/src/com/google/common/collect/DescendingImmutableSortedSet.java

      public E higher(E element) {
        return forward.lower(element);
      }
    
      @Override
      int indexOf(@CheckForNull Object target) {
        int index = forward.indexOf(target);
        if (index == -1) {
          return index;
        } else {
          return size() - 1 - index;
        }
      }
    
      @Override
      boolean isPartialView() {
        return forward.isPartialView();
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3.3K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/collect/RegularImmutableAsList.java

        return delegateList;
      }
    
      @SuppressWarnings("unchecked") // safe covariant cast!
      @Override
      public UnmodifiableListIterator<E> listIterator(int index) {
        return (UnmodifiableListIterator<E>) delegateList.listIterator(index);
      }
    
      @GwtIncompatible // not present in emulated superclass
      @Override
      int copyIntoArray(@Nullable Object[] dst, int offset) {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 3K bytes
    - Viewed (0)
  8. guava/src/com/google/common/collect/SortedLists.java

    final class SortedLists {
      private SortedLists() {}
    
      /**
       * A specification for which index to return if the list contains at least one element that
       * compares as equal to the key.
       */
      enum KeyPresentBehavior {
        /**
         * Return the index of any list element that compares as equal to the key. No guarantees are
         * made as to which index is returned, if more than one element compares as equal to the key.
         */
        ANY_PRESENT {
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 22 21:19:52 UTC 2024
    - 10.9K bytes
    - Viewed (0)
  9. guava/src/com/google/common/collect/CartesianList.java

      }
    
      @Override
      public ImmutableList<E> get(int index) {
        checkElementIndex(index, size());
        return new ImmutableList<E>() {
    
          @Override
          public int size() {
            return axes.size();
          }
    
          @Override
          public E get(int axis) {
            checkElementIndex(axis, size());
            int axisIndex = getAxisIndexForProductIndex(index, axis);
            return axes.get(axis).get(axisIndex);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 4.8K bytes
    - Viewed (0)
  10. android/guava/src/com/google/common/primitives/Ints.java

              return i - start;
            }
          }
          return -1;
        }
    
        @Override
        public Integer set(int index, Integer element) {
          checkElementIndex(index, size());
          int oldValue = array[start + index];
          // checkNotNull for GWT (do not optimize)
          array[start + index] = checkNotNull(element);
          return oldValue;
        }
    
        @Override
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 15 16:12:13 UTC 2024
    - 29.7K bytes
    - Viewed (0)
Back to top