- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 57 for index (0.04 sec)
-
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
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) -
guava/src/com/google/common/collect/JdkBackedImmutableSet.java
JdkBackedImmutableSet(Set<?> delegate, ImmutableList<E> delegateList) { this.delegate = delegate; this.delegateList = delegateList; } @Override E get(int index) { return delegateList.get(index); } @Override public boolean contains(@CheckForNull Object object) { return delegate.contains(object); } @Override boolean isPartialView() { return false; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Nov 30 21:54:06 UTC 2023 - 2K bytes - Viewed (0)