Class NodeList
java.lang.Object
ntnu.idatt2104.madlads.nodeServerAPI.model.NodeList
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanChecks if a node already exists and adds it if it doesn'tReturns all nodes as an ArrayListvoidbooleanremoveNode(Node node)Checks if node exists and removes it if it does
-
Constructor Details
-
NodeList
public NodeList()Constructor
-
-
Method Details
-
getListOfAllNodes
Returns all nodes as an ArrayList- Returns:
- ArrayList
-
addNode
Checks if a node already exists and adds it if it doesn't- Parameters:
node- Node object- Returns:
- Boolean
-
removeNode
Checks if node exists and removes it if it does- Parameters:
node- Node- Returns:
- Boolean
-
removeAllNodes
public void removeAllNodes()
-