public class Node extends Object
Constructor and Description |
---|
Node()
Default constructor
|
Node(JsonObject json)
Constructor from JSON
|
Node(Node other)
Copy constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object o) |
String |
getAddress()
Get node address
|
String |
getLanAddress()
Get node lan address
|
String |
getName()
Get node name
|
String |
getWanAddress()
Get node wan address
|
int |
hashCode() |
Node |
setAddress(String address)
Set node address
|
Node |
setLanAddress(String lanAddress)
Set node lan address
|
Node |
setName(String node)
Set node name
|
Node |
setWanAddress(String wanAddress)
Set node wan address
|
JsonObject |
toJson()
Convert to JSON
|
public Node()
public Node(Node other)
other
- the one to copypublic Node(JsonObject json)
json
- the JSONpublic JsonObject toJson()
public String getName()
public String getAddress()
public String getLanAddress()
public String getWanAddress()
public Node setName(String node)
node
- node namepublic Node setAddress(String address)
address
- node addresspublic Node setLanAddress(String lanAddress)
lanAddress
- node lan addresspublic Node setWanAddress(String wanAddress)
wanAddress
- node wan addressCopyright © 2023 Eclipse. All rights reserved.