Class Node
java.lang.Object
ntnu.idatt2104.madlads.nodeServerAPI.model.Node
-
Constructor Summary
Constructors -
Method Summary
-
Constructor Details
-
Node
Constructor- Parameters:
port
- Portaddress
- Address
-
Node
Constructor that automatically parses a payload- Parameters:
payload
- address and port combined as String
-
-
Method Details
-
getPort
public int getPort()Returns port number- Returns:
- port number
-
getAddress
Return address(ip)- Returns:
- Ip address
-
equals
Equals method -
hashCode
public int hashCode() -
toString
To string method of this object
-