- Sort Score
- Result 10 results
- Languages All
Results 31 - 40 of 1,627 for indexOf (0.13 sec)
-
guava-tests/test/com/google/common/primitives/BooleansTest.java
assertThat(Booleans.indexOf(ARRAY_TRUE, new boolean[0])).isEqualTo(0); } public void testIndexOf_arrays() { assertThat(Booleans.indexOf(EMPTY, false)).isEqualTo(-1); assertThat(Booleans.indexOf(ARRAY_FALSE, true)).isEqualTo(-1); assertThat(Booleans.indexOf(ARRAY_FALSE_FALSE, true)).isEqualTo(-1); assertThat(Booleans.indexOf(ARRAY_FALSE, false)).isEqualTo(0);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 02:56:12 UTC 2024 - 24.8K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractMapBasedMultiset.java
if (occurrences == 0) { return count(element); } checkArgument(occurrences > 0, "occurrences cannot be negative: %s", occurrences); int entryIndex = backingMap.indexOf(element); if (entryIndex == -1) { backingMap.put(element, occurrences); size += occurrences; return 0; } int oldCount = backingMap.getValue(entryIndex);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Mar 06 16:06:58 UTC 2023 - 8.2K bytes - Viewed (0) -
android/guava/src/com/google/common/primitives/ImmutableLongArray.java
} @Override public Long get(int index) { return parent.get(index); } @Override public boolean contains(@CheckForNull Object target) { return indexOf(target) >= 0; } @Override public int indexOf(@CheckForNull Object target) { return target instanceof Long ? parent.indexOf((Long) target) : -1; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 22.3K bytes - Viewed (0) -
guava/src/com/google/common/primitives/ImmutableIntArray.java
} @Override public Integer get(int index) { return parent.get(index); } @Override public boolean contains(@CheckForNull Object target) { return indexOf(target) >= 0; } @Override public int indexOf(@CheckForNull Object target) { return target instanceof Integer ? parent.indexOf((Integer) target) : -1; } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri Oct 25 18:05:56 UTC 2024 - 21.4K bytes - Viewed (0) -
guava/src/com/google/common/collect/ForwardingList.java
@Override public void add(int index, @ParametricNullness E element) { delegate().add(index, element); } @CanIgnoreReturnValue @Override public boolean addAll(int index, Collection<? extends E> elements) { return delegate().addAll(index, elements); } @Override @ParametricNullness public E get(int index) { return delegate().get(index); } @Override
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Fri May 12 15:26:39 UTC 2023 - 7.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ObjectCountHashMap.java
} int getValue(int index) { checkElementIndex(index, size); return values[index]; } void setValue(int index, int newValue) { checkElementIndex(index, size); values[index] = newValue; } Entry<K> getEntry(int index) { checkElementIndex(index, size); return new MapEntry(index); } class MapEntry extends AbstractEntry<K> {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jun 01 22:07:10 UTC 2021 - 15K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
assertEquals(0, copy.indexOf(list.get(0))); assertEquals(0, head.indexOf(list.get(0))); assertEquals(0, tail.indexOf(list.get(1))); // The following assumes all elements are distinct. assertEquals(size - 1, copy.indexOf(list.get(size - 1))); assertEquals(size - 2, head.indexOf(list.get(size - 2))); assertEquals(size - 2, tail.indexOf(list.get(size - 1)));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 13.3K bytes - Viewed (0) -
guava-testlib/src/com/google/common/collect/testing/testers/ListSubListTester.java
assertEquals(0, copy.indexOf(list.get(0))); assertEquals(0, head.indexOf(list.get(0))); assertEquals(0, tail.indexOf(list.get(1))); // The following assumes all elements are distinct. assertEquals(size - 1, copy.indexOf(list.get(size - 1))); assertEquals(size - 2, head.indexOf(list.get(size - 2))); assertEquals(size - 2, tail.indexOf(list.get(size - 1)));
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 13.3K bytes - Viewed (0) -
src/test/java/org/codelibs/core/collection/SLinkedListTest.java
list.addLast("1"); list.addLast("2"); list.addLast("3"); assertThat(list.indexOf(null), is(0)); assertThat(list.indexOf("1"), is(1)); assertThat(list.indexOf("2"), is(2)); assertThat(list.indexOf("3"), is(3)); assertThat(list.indexOf("4"), is(-1)); }
Registered: Fri Nov 01 20:58:10 UTC 2024 - Last Modified: Thu Mar 07 01:59:08 UTC 2024 - 8.3K bytes - Viewed (0) -
src/main/java/jcifs/smb1/http/NtlmServlet.java
Registered: Sun Nov 03 00:10:13 UTC 2024 - Last Modified: Fri Mar 22 21:10:40 UTC 2019 - 6.8K bytes - Viewed (0)