- Sort Score
- Result 10 results
- Languages All
Results 171 - 180 of 6,648 for copyOf (0.07 sec)
-
guava/src/com/google/common/collect/ArrayTable.java
private final @Nullable V[][] array; private ArrayTable(Iterable<? extends R> rowKeys, Iterable<? extends C> columnKeys) { this.rowList = ImmutableList.copyOf(rowKeys); this.columnList = ImmutableList.copyOf(columnKeys); checkArgument(rowList.isEmpty() == columnList.isEmpty()); /* * TODO(jlevy): Support only one of rowKey / columnKey being empty? If we
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Wed Aug 13 19:39:21 UTC 2025 - 26.8K bytes - Viewed (0) -
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) -
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/src/com/google/common/util/concurrent/ServiceManager.java
+ " properly?", new EmptyServiceManagerWarning()); copy = ImmutableList.<Service>of(new NoOpService()); } this.state = new ServiceManagerState(copy); this.services = copy; WeakReference<ServiceManagerState> stateReference = new WeakReference<>(state); for (Service service : copy) { service.addListener(new ServiceListener(service, stateReference), directExecutor());Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue May 13 17:27:14 UTC 2025 - 33.2K bytes - Viewed (1) -
android/guava-tests/test/com/google/common/graph/AbstractStandardUndirectedNetworkTest.java
public void addEdge_existingEdgeBetweenSameNodes() { assume().that(graphIsMutable()).isTrue(); assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isTrue(); ImmutableSet<String> edges = ImmutableSet.copyOf(network.edges()); assertThat(networkAsMutableNetwork.addEdge(N1, N2, E12)).isFalse(); assertThat(network.edges()).containsExactlyElementsIn(edges); assertThat(networkAsMutableNetwork.addEdge(N2, N1, E12)).isFalse();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 18.6K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ImmutableClassToInstanceMap.java
* ImmutableClassToInstanceMap}, no copy will actually be performed. * * @throws NullPointerException if any key or value in {@code map} is null * @throws ClassCastException if any value is not an instance of the type specified by its key */ public static <B, S extends B> ImmutableClassToInstanceMap<B> copyOf( Map<? extends Class<? extends S>, ? extends S> map) {Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Mon Mar 17 20:26:29 UTC 2025 - 7.1K bytes - Viewed (0) -
src/test/java/jcifs/internal/smb2/ioctl/SrvCopychunkCopyTest.java
// Create copy with varying number of chunks SrvCopychunk[] chunks = Arrays.copyOf(testCases, numChunks); SrvCopychunkCopy copy = new SrvCopychunkCopy(sourceKey, chunks); byte[] buffer = new byte[500]; // When int expectedSize = copy.size(); int actualEncoded = copy.encode(buffer, 0); // ThenRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Thu Aug 14 05:31:44 UTC 2025 - 23.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/math/DoubleMathTest.java
private static final Iterable<Double> TOLERANCE_CANDIDATES = ImmutableList.copyOf( Iterables.concat( FINITE_TOLERANCE_CANDIDATES, ImmutableList.of(Double.POSITIVE_INFINITY))); private static final ImmutableList<Double> BAD_TOLERANCE_CANDIDATES = ImmutableList.copyOf( Doubles.asList( -Double.MIN_VALUE, -Double.MIN_NORMAL,
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 27.3K bytes - Viewed (0) -
src/test/java/jcifs/smb/NtlmPasswordAuthenticatorTest.java
@DisplayName("Test password array is truly independent of input") public void testPasswordArrayIndependence() { char[] originalPassword = "IndependentPass123!".toCharArray(); char[] passwordCopy = Arrays.copyOf(originalPassword, originalPassword.length); NtlmPasswordAuthenticator auth = new NtlmPasswordAuthenticator("user", originalPassword); // Modify the original arrayRegistered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 23.3K bytes - Viewed (0) -
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)