Toggle navigation
Home
com.google.common.graph.Endpoints to com.google.common.graph.EndpointPair
No. of Instances - 28
No. of Commits - 1
No. of Projects - {'guava'}
Hierarchy/Composition: SIBLING
Primitive Info: -
NameSpace: Internal -> Internal
Mapping:
Rename Variable
edgeEndpointsMap
to
edgeIncidentNodesMap
edgeToEndpointsFn
to
edgeToIncidentNodesFn
edgeToEndpointsFn
to
edgeToIncidentNodesFn
endpoints
to
endpointPair
existingEndpoints
to
existingIncidentNodes
endpoints
to
endpointPair
endpoints
to
endpointPair
endpoints
to
endpointPair
endpoints
to
endpointPair
endpoints
to
edge
endpoints
to
endpointPair
allEndpoints
to
allEndpointPairs
allEndpoints
to
allEndpointPairs
endpoints
to
endpointPair
newEndpoints
to
newIncidentNodes
newEndpoints
to
newIncidentNodes
endpoints
to
endpointPair
endpoints
to
endpointPair
Add or Remove Method invocation
assertThat(graph.putEdge(edge.nodeA(),edge.nodeB()))
to
assertThat(graph.putEdge(edge.nodeU(),edge.nodeV()))
existingEndpoints.equals(newEndpoints)
to
existingIncidentNodes.equals(newIncidentNodes)
nodeB()
to
nodeV()
nodeA().equals(other.nodeB())
to
nodeU().equals(other.nodeV())
nodeA()
to
nodeU()
nodeB()
to
nodeV()
isDirected()
to
isOrdered()
nodeA().equals(other.nodeA())
to
nodeU().equals(other.nodeU())
endpoints.isDirected()
to
endpointPair.isOrdered()
endpoints.nodeA()
to
endpointPair.nodeU()
endpoints.nodeB()
to
endpointPair.nodeV()
endpoints
to
endpointPair.nodeU()
endpoints.nodeA()
to
endpointPair
isDirected()
to
isOrdered()
assertThat(graph.removeEdge(edge.nodeA(),edge.nodeB()))
to
assertThat(graph.removeEdge(edge.nodeU(),edge.nodeV()))
edge.nodeA()
to
edge.nodeU()
edge.nodeB()
to
edge.nodeV()
endpoints
to
endpointPair.nodeU()
endpoints.nodeA()
to
endpointPair
endpoints
to
endpointPair.nodeV()
endpoints.nodeB()
to
endpointPair
endpoints.nodeB()
to
endpointPair.nodeV()
endpoints.nodeA()
to
endpointPair.nodeU()
Cascading Type Change (Similar)
Endpoints<N>
to
EndpointPair<N>
Function<E,Endpoints<N>>
to
Function<E,EndpointPair<N>>
AbstractSet<Endpoints<N>>
to
AbstractSet<EndpointPair<N>>
Set<Endpoints<N>>
to
Set<EndpointPair<N>>
Update Anonymous class
{ @Override public Iterator<Endpoints<N>> iterator(){ return EndpointsIterator.of(AbstractGraph.this); } @Override public int size(){ return Ints.saturatedCast(edgeCount()); } @Override public boolean contains( Object obj){ if (!(obj instanceof Endpoints)) { return false; } Endpoints<?> endpoints=(Endpoints<?>)obj; return isDirected() == endpoints.isDirected() && nodes().contains(endpoints.nodeA()) && successors(endpoints.nodeA()).contains(endpoints.nodeB()); } }
to
{ @Override public Iterator<EndpointPair<N>> iterator(){ return EndpointPairIterator.of(AbstractGraph.this); } @Override public int size(){ return Ints.saturatedCast(edgeCount()); } @Override public boolean contains( Object obj){ if (!(obj instanceof EndpointPair)) { return false; } EndpointPair<?> endpointPair=(EndpointPair<?>)obj; return isDirected() == endpointPair.isOrdered() && nodes().contains(endpointPair.nodeU()) && successors(endpointPair.nodeU()).contains(endpointPair.nodeV()); } }
Cascading Type Change (Different)
HashSet<Endpoints<N>>
to
HashSet<EndpointPair<N>>