- Sort Score
- Result 10 results
- Languages All
Results 191 - 200 of 298 for copyBuf (0.09 sec)
-
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 21.2K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ImmutableTableTest.java
assertThrows(NullPointerException.class, () -> builder.put('a', 1, null)); } private static <R, C, V> void validateTableCopies(Table<R, C, V> original) { Table<R, C, V> copy = ImmutableTable.copyOf(original); assertEquals(original, copy); validateViewOrdering(original, copy); Table<R, C, V> built = ImmutableTable.<R, C, V>builder().putAll(original).build(); assertEquals(original, built);
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Oct 30 16:15:19 UTC 2024 - 18.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/collect/Collections2Test.java
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Feb 21 10:16:44 UTC 2024 - 19.7K bytes - Viewed (0) -
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 Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Jul 02 18:21:29 UTC 2024 - 18.6K 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 public static class BuiltTests extends TestCase { public static Test suite() {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Oct 15 17:36:06 UTC 2024 - 19K 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 Nov 01 12:43:10 UTC 2024 - Last Modified: Tue Apr 25 11:57:12 UTC 2023 - 5.9K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/StandardMutableNetwork.java
return false; } // Since views are returned, we need to copy the edges that will be removed. // Thus we avoid modifying the underlying view while iterating over it. for (E edge : ImmutableList.copyOf(connections.incidentEdges())) { removeEdge(edge); } nodeConnections.remove(node); return true; } @Override @CanIgnoreReturnValue public boolean removeEdge(E edge) {
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Mon Apr 26 17:43:39 UTC 2021 - 5.7K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/ValueGraphTest.java
MutableValueGraph<Integer, String> graph; @After public void validateGraphState() { assertStronglyEquivalent(graph, Graphs.copyOf(graph)); assertStronglyEquivalent(graph, ImmutableValueGraph.copyOf(graph)); Graph<Integer> asGraph = graph.asGraph(); AbstractGraphTest.validateGraph(asGraph); assertThat(graph.nodes()).isEqualTo(asGraph.nodes());
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed Sep 06 17:04:31 UTC 2023 - 17.4K bytes - Viewed (0) -
guava-tests/test/com/google/common/collect/ForwardingMultisetTest.java
@Override protected Multiset<String> create(String[] elements) { return new StandardImplForwardingMultiset<>(ImmutableMultiset.copyOf(elements)); } }) .named("ForwardingMultiset[ImmutableMultiset] with standard " + "implementations")
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Sat Oct 19 00:05:46 UTC 2024 - 11.8K bytes - Viewed (0) -
guava-tests/test/com/google/common/base/EnumsTest.java
Optional<TestEnum> result = Enums.getIfPresent(shadowTestEnum, constant.name()); assertThat(result).isPresent(); shadowConstants.add(result.get()); } assertEquals(ImmutableSet.<Object>copyOf(shadowTestEnum.getEnumConstants()), shadowConstants); Optional<TestEnum> result = Enums.getIfPresent(shadowTestEnum, "blibby"); assertThat(result).isAbsent(); return new WeakReference<>(shadowLoader); }
Registered: Fri Nov 01 12:43:10 UTC 2024 - Last Modified: Wed May 29 16:29:37 UTC 2024 - 8.7K bytes - Viewed (0)