- Sort Score
- Result 10 results
- Languages All
Results 201 - 210 of 307 for copyFor (0.36 sec)
-
android/guava-tests/test/com/google/common/collect/ContiguousSetTest.java
for (int i = 0; i < 3; i++) { assertEquals(i + 1, list.get(i).intValue()); } assertEquals(ImmutableList.of(1, 2, 3), ImmutableList.copyOf(list.iterator())); assertEquals(ImmutableList.of(1, 2, 3), ImmutableList.copyOf(list.toArray(new Integer[0]))); } @J2ktIncompatible @GwtIncompatible // suite @AndroidIncompatible // test-suite builders
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 19.6K 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/graph/UndirectedMultiNetworkConnections.java
new HashMap<E, N>(INNER_CAPACITY, INNER_LOAD_FACTOR)); } static <N, E> UndirectedMultiNetworkConnections<N, E> ofImmutable(Map<E, N> incidentEdges) { return new UndirectedMultiNetworkConnections<>(ImmutableMap.copyOf(incidentEdges)); } @LazyInit private transient @Nullable Reference<Multiset<N>> adjacentNodesReference; @Override public Set<N> adjacentNodes() {
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sun Dec 22 03:38:46 UTC 2024 - 3.7K bytes - Viewed (0) -
src/main/java/org/codelibs/fess/app/web/admin/webauth/AdminWebauthAction.java
op.setup(form -> { webAuthenticationService.getWebAuthentication(id).ifPresent(entity -> { copyBeanToBean(entity, form, copyOp -> { copyOp.excludeNull(); }); form.crudMode = crudMode; }).orElse(() -> {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 20.3K bytes - Viewed (0) -
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) -
src/main/java/org/codelibs/fess/app/web/admin/pathmap/AdminPathmapAction.java
op.setup(form -> { pathMappingService.getPathMapping(id).ifPresent(entity -> { copyBeanToBean(entity, form, copyOp -> { copyOp.excludeNull(); }); form.crudMode = crudMode; }).orElse(() -> {
Registered: Thu Sep 04 12:52:25 UTC 2025 - Last Modified: Thu Jul 17 08:28:31 UTC 2025 - 16K bytes - Viewed (0) -
guava/src/com/google/common/collect/ImmutableMap.java
this.size = 0; this.entriesUsed = false; } private void ensureCapacity(int minCapacity) { if (minCapacity > entries.length) { entries = Arrays.copyOf( entries, ImmutableCollection.Builder.expandedCapacity(entries.length, minCapacity)); entriesUsed = false; } } /**
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Aug 09 01:14:59 UTC 2025 - 44.3K bytes - Viewed (0) -
okhttp/src/commonJvmAndroid/kotlin/okhttp3/internal/-UtilCommon.kt
comparator: Comparator<String>, ): Int = indexOfFirst { comparator.compare(it, value) == 0 } @Suppress("UNCHECKED_CAST") internal fun Array<String>.concat(value: String): Array<String> { val result = copyOf(size + 1) result[result.lastIndex] = value return result as Array<String> } /** Increments [startIndex] until this string is not ASCII whitespace. Stops at [endIndex]. */
Registered: Fri Sep 05 11:42:10 UTC 2025 - Last Modified: Mon May 05 16:01:00 UTC 2025 - 10.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/create/Smb2CreateResponseTest.java
private static final int SMB2_HEADER_LENGTH = 64; /** * Build a minimal SMB2 header for a response. */ private static byte[] buildSmb2Header() { byte[] header = Arrays.copyOf(SMBUtil.SMB2_HEADER, SMBUtil.SMB2_HEADER.length); // Mark as server->client response for realism SMBUtil.writeInt4(0x00000001, header, 16); // Flags // Command SMB2_CREATE (0x0005)
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 11.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/AbstractStandardDirectedNetworkTest.java
} @Test public void addEdge_existingEdgeBetweenSameNodes() { assume().that(graphIsMutable()).isTrue(); addEdge(N1, N2, E12); ImmutableSet<String> edges = ImmutableSet.copyOf(network.edges()); assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isFalse(); assertThat(network.edges()).containsExactlyElementsIn(edges); } @Test
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 20.9K bytes - Viewed (0)