public class ConcurrentNodesList extends AbstractNodesList
Constructor and Description |
---|
ConcurrentNodesList() |
Modifier and Type | Method and Description |
---|---|
boolean |
addNode(Node n)
Add a node to this NodeList.
|
boolean |
equals(java.lang.Object obj) |
java.util.LinkedList<Node> |
getNodeList()
Return a set of Nodes.
|
int |
hashCode() |
boolean |
removeNode(Node n)
Remove a node from this list.
|
void |
setNodeList(java.util.LinkedList<Node> nodeList)
Sets the NodeList
|
int |
size()
Returns the size of the NodeList
|
public java.util.LinkedList<Node> getNodeList()
AbstractNodesList
getNodeList
in class AbstractNodesList
public void setNodeList(java.util.LinkedList<Node> nodeList)
AbstractNodesList
setNodeList
in class AbstractNodesList
nodeList
- - The NodeList to be copied.public boolean addNode(Node n)
AbstractNodesList
addNode
in class AbstractNodesList
n
- - the node to be addedpublic boolean removeNode(Node n)
AbstractNodesList
removeNode
in class AbstractNodesList
n
- - the node to be removedpublic int size()
AbstractNodesList
size
in class AbstractNodesList
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object