Search Options

Results per page
Sort
Preferred Languages
Advance

Results 31 - 40 of 57 for index (0.04 sec)

  1. 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)
  2. 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)
  3. 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)
  4. 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)
  5. guava/src/com/google/common/collect/SparseImmutableTable.java

        return cellRowIndices.length;
      }
    
      @Override
      Cell<R, C, V> getCell(int index) {
        int rowIndex = cellRowIndices[index];
        Entry<R, ImmutableMap<C, V>> rowEntry = rowMap.entrySet().asList().get(rowIndex);
        ImmutableMap<C, V> row = rowEntry.getValue();
        int columnIndex = cellColumnInRowIndices[index];
        Entry<C, V> colEntry = row.entrySet().asList().get(columnIndex);
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 5.6K bytes
    - Viewed (0)
  6. 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)
  7. android/guava/src/com/google/common/util/concurrent/CombinedFuture.java

          Callable<V> callable) {
        super(futures, allMustSucceed, false);
        this.task = new CallableInterruptibleTask(callable, listenerExecutor);
        init();
      }
    
      @Override
      void collectOneValue(int index, @CheckForNull Object returnValue) {}
    
      @Override
      void handleAllCompleted() {
        CombinedFutureInterruptibleTask<?> localTask = task;
        if (localTask != null) {
          localTask.execute();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  8. guava/src/com/google/common/util/concurrent/CombinedFuture.java

          Callable<V> callable) {
        super(futures, allMustSucceed, false);
        this.task = new CallableInterruptibleTask(callable, listenerExecutor);
        init();
      }
    
      @Override
      void collectOneValue(int index, @CheckForNull Object returnValue) {}
    
      @Override
      void handleAllCompleted() {
        CombinedFutureInterruptibleTask<?> localTask = task;
        if (localTask != null) {
          localTask.execute();
        }
      }
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Feb 01 21:46:34 UTC 2024
    - 6.8K bytes
    - Viewed (0)
  9. android/guava/src/com/google/common/collect/RegularImmutableList.java

      // The fake cast to E is safe because the creation methods only allow E's
      @Override
      @SuppressWarnings("unchecked")
      public E get(int index) {
        checkElementIndex(index, size);
        // requireNonNull is safe because we guarantee that the first `size` elements are non-null.
        return (E) requireNonNull(array[index]);
      }
    
      // TODO(lowasser): benchmark optimizations for equals() and see if they're worthwhile
    
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Thu Nov 30 21:54:06 UTC 2023
    - 2.8K bytes
    - Viewed (0)
  10. android/guava-testlib/src/com/google/common/testing/EqualsTester.java

        for (int i = 0; i < equalityGroup.length; i++) {
          Object element = equalityGroup[i];
          if (element == null) {
            throw new NullPointerException("at index " + i);
          }
          list.add(element);
        }
        equalityGroups.add(list);
        return this;
      }
    
      /** Run tests on equals method, throwing a failure on an invalid test */
      @CanIgnoreReturnValue
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Tue Oct 31 19:11:50 UTC 2023
    - 6K bytes
    - Viewed (0)
Back to top