- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 72 for index (0.04 sec)
-
android/guava/src/com/google/common/base/SmallCharMatcher.java
int startingIndex = smear(c) & mask; int index = startingIndex; do { if (table[index] == 0) { // Check for empty. return false; } else if (table[index] == c) { // Check for match. return true; } else { // Linear probing. index = (index + 1) & mask; } // Check to see if we wrapped around the whole table. } while (index != startingIndex); return false; }
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Fri Feb 09 15:49:48 UTC 2024 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/escape/ArrayBasedEscaperMapTest.java
assertEquals(65536, replacementArray.length); // The final element should always be non-null. assertNotNull(replacementArray[replacementArray.length - 1]); // Exhaustively check all mappings (an int index avoids wrapping). for (int n = 0; n < replacementArray.length; ++n) { char c = (char) n; if (replacementArray[n] != null) { assertEquals(map.get(c), new String(replacementArray[n])); } else {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Oct 10 19:45:10 UTC 2022 - 2.5K bytes - Viewed (0) -
android/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) -
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 public void forEach(Consumer<? super E> action) { delegateList.forEach(action); }
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/base/Utf8.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 10 14:11:51 UTC 2023 - 7K bytes - Viewed (0) -
android/guava/src/com/google/common/base/Utf8.java
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 10 14:11:51 UTC 2023 - 7K bytes - Viewed (0) -
android/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/RegularImmutableSortedSet.java
} @Override @CheckForNull public E lower(E element) { int index = headIndex(element, false) - 1; return (index == -1) ? null : elements.get(index); } @Override @CheckForNull public E floor(E element) { int index = headIndex(element, true) - 1; return (index == -1) ? null : elements.get(index); } @Override @CheckForNull public E ceiling(E element) {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Mon Apr 01 16:15:01 UTC 2024 - 9.2K bytes - Viewed (0) -
android/guava/src/com/google/thirdparty/publicsuffix/TrieParser.java
* * @param stack The prefixes that precede the characters represented by this node. Each entry of * the stack is in reverse order. * @param encoded The serialized trie. * @param start An index in the encoded serialized trie to begin reading characters from. * @param builder A map builder to which all entries will be added. * @return The number of characters consumed from {@code encoded}. */
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Oct 13 19:20:43 UTC 2022 - 4K bytes - Viewed (0) -
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)