T
- The type of node the pin is attached topublic class Pin<T extends Connectable>
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
protected int |
m_index
The index of the pin on that node.
|
protected T |
m_node
The node this pin is attached to.
|
Constructor and Description |
---|
Pin(T node,
int index)
Creates a new pin.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object o) |
int |
getIndex()
Gets the index of the pin on the node this pin is attached to.
|
T |
getNode()
Gets the node this pin is attached to.
|
int |
hashCode() |
java.lang.String |
toString() |
protected final T extends Connectable m_node
protected final int m_index
public Pin(T node, int index)
node
- The node this pin is attached toindex
- The index of the pin on that nodepublic int getIndex()
public T getNode()
public int hashCode()
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in class java.lang.Object
public java.lang.String toString()
toString
in class java.lang.Object
Copyright © Sylvain HallĂ©. All Rights Reserved.