- Sort Score
- Result 10 results
- Languages All
Results 221 - 230 of 6,651 for copyTo (0.04 sec)
-
android/guava/src/com/google/common/collect/ObjectCountLinkedHashMap.java
} super.moveLastEntry(dstIndex); } @Override void resizeEntries(int newCapacity) { super.resizeEntries(newCapacity); int oldCapacity = links.length; links = Arrays.copyOf(links, newCapacity); Arrays.fill(links, oldCapacity, newCapacity, UNSET); } @Override public void clear() { super.clear(); this.firstEntry = ENDPOINT; this.lastEntry = ENDPOINT;
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 5.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/hash/HashingInputStreamTest.java
int numOfByteRead = in.read(buf, 0, 3); assertEquals(3, numOfByteRead); for (int i = 0; i < numOfByteRead; i++) { assertEquals(testBytes[i], buf[i]); } verify(hasher).putBytes(Arrays.copyOf(testBytes, 3), 0, 3); verify(hashFunction).newHasher(); verifyNoMoreInteractions(hashFunction, hasher); } public void testRead_putByteArrayOutOfBound() throws Exception { byte[] buf = new byte[100];
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5K bytes - Viewed (0) -
guava-tests/test/com/google/common/hash/HashingInputStreamTest.java
int numOfByteRead = in.read(buf, 0, 3); assertEquals(3, numOfByteRead); for (int i = 0; i < numOfByteRead; i++) { assertEquals(testBytes[i], buf[i]); } verify(hasher).putBytes(Arrays.copyOf(testBytes, 3), 0, 3); verify(hashFunction).newHasher(); verifyNoMoreInteractions(hashFunction, hasher); } public void testRead_putByteArrayOutOfBound() throws Exception { byte[] buf = new byte[100];
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/testing/RelationshipTester.java
// TODO(cpovirk): should we reject null items, since the tests already check null automatically? @CanIgnoreReturnValue public RelationshipTester<T> addRelatedGroup(Iterable<? extends T> group) { groups.add(ImmutableList.copyOf(group)); return this; } public void test() { for (int groupNumber = 0; groupNumber < groups.size(); groupNumber++) { ImmutableList<T> group = groups.get(groupNumber);
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/CompactLinkedHashSet.java
requireSuccessors()[srcIndex] = 0; } @Override void resizeEntries(int newCapacity) { super.resizeEntries(newCapacity); predecessor = Arrays.copyOf(requirePredecessors(), newCapacity); successor = Arrays.copyOf(requireSuccessors(), newCapacity); } @Override int firstEntryIndex() { return firstEntry; } @Override
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 06 14:59:07 UTC 2025 - 9.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/io/CloserTest.java
} catch (IOException expected) { assertSame(thrownException, expected); } assertTrue(c1.isClosed()); assertTrue(c2.isClosed()); ImmutableSet<Throwable> suppressed = ImmutableSet.copyOf(thrownException.getSuppressed()); assertEquals(2, suppressed.size()); assertEquals(ImmutableSet.of(c1Exception, c2Exception), suppressed); } public void testNullCloseable() throws IOException {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Jul 16 17:42:14 UTC 2025 - 11.8K bytes - Viewed (0) -
api/maven-api-cli/src/main/java/org/apache/maven/api/cli/ParserRequest.java
return this; } public ParserRequest build() { return new ParserRequestImpl( command, commandName, List.copyOf(args), lookup.lookupOptional(Logger.class).orElse(logger), messageBuilderFactory, lookup, cwd, mavenHome,
Registered: Sun Sep 07 03:35:12 UTC 2025 - Last Modified: Sat Jun 07 06:22:47 UTC 2025 - 15.9K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilJvm.kt
/** Returns an immutable copy of this. */ @Suppress("UNCHECKED_CAST") internal fun <T> List<T>.toImmutableList(): List<T> = when { this.isEmpty() -> emptyList() this.size == 1 -> Collections.singletonList(this[0]) // Collection.toArray returns Object[] (covariant). // It is faster than creating real T[] via reflection (Arrays.copyOf).
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Thu Jul 31 04:18:40 UTC 2025 - 10.2K bytes - Viewed (1) -
guava-tests/test/com/google/common/io/SourceSinkTester.java
&& method.getParameterTypes().length == 0 && method.getName().startsWith("test")) { result.add(method); } } return ImmutableList.copyOf(result); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 4.9K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractNetworkTest.java
public void validateNetworkState() { validateNetwork(network); } static <N, E> void validateNetwork(Network<N, E> network) { assertStronglyEquivalent(network, Graphs.copyOf(network)); assertStronglyEquivalent(network, ImmutableNetwork.copyOf(network)); String networkString = network.toString(); assertThat(networkString).contains("isDirected: " + network.isDirected());
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 18:46:00 UTC 2025 - 32.7K bytes - Viewed (0)