org.openstreetmap.josm.actions
Class CombineWayAction.NodePair

java.lang.Object
  extended by org.openstreetmap.josm.actions.CombineWayAction.NodePair
Enclosing class:
CombineWayAction

public static class CombineWayAction.NodePair
extends java.lang.Object


Field Summary
private  Node a
           
private  Node b
           
 
Constructor Summary
CombineWayAction.NodePair(CombineWayAction.NodePair other)
           
CombineWayAction.NodePair(Node a, Node b)
           
CombineWayAction.NodePair(Pair<Node,Node> pair)
           
 
Method Summary
 boolean contains(Node n)
           
 boolean equals(java.lang.Object obj)
           
 Node getA()
           
 Node getB()
           
 int hashCode()
           
 boolean isAdjacentToA(CombineWayAction.NodePair other)
           
 boolean isAdjacentToB(CombineWayAction.NodePair other)
           
 boolean isPredecessorOf(CombineWayAction.NodePair other)
           
 boolean isSuccessorOf(CombineWayAction.NodePair other)
           
 CombineWayAction.NodePair swap()
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

a

private Node a

b

private Node b
Constructor Detail

CombineWayAction.NodePair

public CombineWayAction.NodePair(Node a,
                                 Node b)

CombineWayAction.NodePair

public CombineWayAction.NodePair(Pair<Node,Node> pair)

CombineWayAction.NodePair

public CombineWayAction.NodePair(CombineWayAction.NodePair other)
Method Detail

getA

public Node getA()

getB

public Node getB()

isAdjacentToA

public boolean isAdjacentToA(CombineWayAction.NodePair other)

isAdjacentToB

public boolean isAdjacentToB(CombineWayAction.NodePair other)

isSuccessorOf

public boolean isSuccessorOf(CombineWayAction.NodePair other)

isPredecessorOf

public boolean isPredecessorOf(CombineWayAction.NodePair other)

swap

public CombineWayAction.NodePair swap()

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

contains

public boolean contains(Node n)

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object


JOSM