- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 279 for ordered (0.04 sec)
-
android/guava-tests/test/com/google/common/graph/EndpointPairTest.java
EndpointPair<String> ordered = EndpointPair.ordered("source", "target"); assertThat(ordered.isOrdered()).isTrue(); assertThat(ordered).containsExactly("source", "target").inOrder(); assertThat(ordered.source()).isEqualTo("source"); assertThat(ordered.target()).isEqualTo("target"); assertThat(ordered.nodeU()).isEqualTo("source"); assertThat(ordered.nodeV()).isEqualTo("target");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 9.5K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/EndpointPair.java
public static <N> EndpointPair<N> ordered(N source, N target) { return new Ordered<>(source, target); } /** Returns an {@link EndpointPair} representing the endpoints of an undirected edge. */ public static <N> EndpointPair<N> unordered(N nodeU, N nodeV) { // Swap nodes on purpose to prevent callers from relying on the "ordering" of an unordered pair. return new Unordered<>(nodeV, nodeU); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 8.1K bytes - Viewed (0) -
guava/src/com/google/common/graph/EndpointPair.java
public static <N> EndpointPair<N> ordered(N source, N target) { return new Ordered<>(source, target); } /** Returns an {@link EndpointPair} representing the endpoints of an undirected edge. */ public static <N> EndpointPair<N> unordered(N nodeU, N nodeV) { // Swap nodes on purpose to prevent callers from relying on the "ordering" of an unordered pair. return new Unordered<>(nodeV, nodeU); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Tue Jul 08 18:32:10 UTC 2025 - 8.1K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java
assertThat(graph.nodes()).containsExactly("A", "B"); assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B")); } @Test public void immutableGraphBuilder_putEdgeFromEndpointPair() { ImmutableGraph<String> graph = GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build(); assertThat(graph.nodes()).containsExactly("A", "B");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/StandardImmutableGraphAdditionalTest.java
assertThat(graph.nodes()).containsExactly("A", "B"); assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B")); } @Test public void immutableGraphBuilder_putEdgeFromEndpointPair() { ImmutableGraph<String> graph = GraphBuilder.directed().<String>immutable().putEdge(EndpointPair.ordered("A", "B")).build(); assertThat(graph.nodes()).containsExactly("A", "B");
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 4.5K bytes - Viewed (0) -
guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java
.putEdgeValue(1, 2, "1-2") .build(); assertThat(graph.incidentEdges(2)) .containsExactly( EndpointPair.ordered(2, 1), EndpointPair.ordered(2, 3), EndpointPair.ordered(1, 2)) .inOrder(); } @Test public void immutableValueGraphBuilder_incidentEdgeOrder_stable() { ImmutableValueGraph<Integer, String> graph =
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 6.5K bytes - Viewed (0) -
android/guava-tests/test/com/google/common/graph/ImmutableNetworkTest.java
assertThat(network.incidentNodes(10)).isEqualTo(EndpointPair.ordered("A", "B")); } @Test public void immutableNetworkBuilder_putEdgeFromEndpointPair() { ImmutableNetwork<String, Integer> network = NetworkBuilder.directed() .<String, Integer>immutable() .addEdge(EndpointPair.ordered("A", "B"), 10) .build();
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Dec 19 18:03:30 UTC 2024 - 5.5K bytes - Viewed (0) -
android/guava/src/com/google/common/graph/MutableGraph.java
/** * Adds an edge connecting {@code endpoints} (in the order, if any, specified by {@code * endpoints}) if one is not already present. * * <p>If this graph is directed, {@code endpoints} must be ordered and the added edge will be * directed; if it is undirected, the added edge will be undirected. * * <p>If this graph is directed, {@code endpoints} must be ordered. *
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Sat Dec 21 03:10:51 UTC 2024 - 3.8K bytes - Viewed (0) -
android/guava-testlib/src/com/google/common/collect/testing/testers/CollectionForEachTester.java
public void testForEachKnownOrder() { List<E> elements = new ArrayList<>(); collection.forEach(elements::add); List<E> expected = Helpers.copyToList(getOrderedElements()); assertEquals("Different ordered iteration", expected, elements); }
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Oct 31 14:51:04 UTC 2024 - 2.2K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/Platform.java
/** * Returns the platform preferred implementation of an insertion ordered set based on a hash * table. */ static <E extends @Nullable Object> Set<E> newLinkedHashSetWithExpectedSize(int expectedSize) { return CompactLinkedHashSet.createWithExpectedSize(expectedSize); } /** * Returns the platform preferred map implementation that preserves insertion order when used only * for insertions. */
Registered: Fri Sep 05 12:43:10 UTC 2025 - Last Modified: Thu Aug 07 16:05:33 UTC 2025 - 5.3K bytes - Viewed (0)