Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 8 of 8 for edgeValueOrDefault (0.1 sec)

  1. android/guava/src/com/google/common/graph/ForwardingValueGraph.java

      }
    
      @Override
      @CheckForNull
      public V edgeValueOrDefault(N nodeU, N nodeV, @CheckForNull V defaultValue) {
        return delegate().edgeValueOrDefault(nodeU, nodeV, defaultValue);
      }
    
      @Override
      @CheckForNull
      public V edgeValueOrDefault(EndpointPair<N> endpoints, @CheckForNull V defaultValue) {
        return delegate().edgeValueOrDefault(endpoints, defaultValue);
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 26 17:43:39 UTC 2021
    - 2.9K bytes
    - Viewed (0)
  2. guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
        assertThat(graph.edgeValueOrDefault("A", "B", null)).isEqualTo(10);
      }
    
      @Test
      public void immutableValueGraphBuilder_putEdgeFromEndpointPair() {
        ImmutableValueGraph<String, Integer> graph =
            ValueGraphBuilder.directed()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  3. guava/src/com/google/common/graph/AbstractValueGraph.java

          }
        };
      }
    
      @Override
      public Optional<V> edgeValue(N nodeU, N nodeV) {
        return Optional.ofNullable(edgeValueOrDefault(nodeU, nodeV, null));
      }
    
      @Override
      public Optional<V> edgeValue(EndpointPair<N> endpoints) {
        return Optional.ofNullable(edgeValueOrDefault(endpoints, null));
      }
    
      @Override
      public final boolean equals(@CheckForNull Object obj) {
        if (obj == this) {
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 13:59:28 UTC 2023
    - 4.3K bytes
    - Viewed (0)
  4. guava/src/com/google/common/graph/StandardValueGraph.java

      }
    
      @Override
      @CheckForNull
      public V edgeValueOrDefault(N nodeU, N nodeV, @CheckForNull V defaultValue) {
        return edgeValueOrDefaultInternal(checkNotNull(nodeU), checkNotNull(nodeV), defaultValue);
      }
    
      @Override
      @CheckForNull
      public V edgeValueOrDefault(EndpointPair<N> endpoints, @CheckForNull V defaultValue) {
        validateEndpoints(endpoints);
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Jan 22 17:29:38 UTC 2024
    - 6.1K bytes
    - Viewed (0)
  5. android/guava-tests/test/com/google/common/graph/ImmutableValueGraphTest.java

                .build();
    
        assertThat(graph.nodes()).containsExactly("A", "B");
        assertThat(graph.edges()).containsExactly(EndpointPair.ordered("A", "B"));
        assertThat(graph.edgeValueOrDefault("A", "B", null)).isEqualTo(10);
      }
    
      @Test
      public void immutableValueGraphBuilder_putEdgeFromEndpointPair() {
        ImmutableValueGraph<String, Integer> graph =
            ValueGraphBuilder.directed()
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Thu Jan 09 20:24:43 UTC 2020
    - 6.4K bytes
    - Viewed (0)
  6. android/guava/src/com/google/common/graph/AbstractValueGraph.java

        return Maps.asMap(
            graph.edges(),
            edge ->
                // requireNonNull is safe because the endpoint pair comes from the graph.
                requireNonNull(graph.edgeValueOrDefault(edge.nodeU(), edge.nodeV(), null)));
      }
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Mon Apr 17 13:59:28 UTC 2023
    - 4K bytes
    - Viewed (0)
  7. android/guava/src/com/google/common/graph/ImmutableValueGraph.java

        Function<N, V> successorNodeToValueFn =
            (N successorNode) ->
                // requireNonNull is safe because the endpoint pair comes from the graph.
                requireNonNull(graph.edgeValueOrDefault(node, successorNode, null));
        return graph.isDirected()
            ? DirectedGraphConnections.ofImmutable(
                node, graph.incidentEdges(node), successorNodeToValueFn)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.7K bytes
    - Viewed (0)
  8. guava/src/com/google/common/graph/ImmutableValueGraph.java

        Function<N, V> successorNodeToValueFn =
            (N successorNode) ->
                // requireNonNull is safe because the endpoint pair comes from the graph.
                requireNonNull(graph.edgeValueOrDefault(node, successorNode, null));
        return graph.isDirected()
            ? DirectedGraphConnections.ofImmutable(
                node, graph.incidentEdges(node), successorNodeToValueFn)
    Registered: Fri Nov 01 12:43:10 UTC 2024
    - Last Modified: Tue Feb 01 16:30:37 UTC 2022
    - 7.7K bytes
    - Viewed (0)
Back to top