Class NodeBean
- java.lang.Object
-
- com.h2tcoin.takamakachain.p2p.beans.NodeBean
-
- All Implemented Interfaces:
Serializable
,Comparable<NodeBean>
public class NodeBean extends Object implements Serializable, Comparable<NodeBean>
- Author:
- francesco.pasetto@h2tcoin.com
- See Also:
- Serialized Form
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
compareTo(NodeBean o)
boolean
equals(Object obj)
String
getIdString()
String
getIp()
int
getPort()
int
getSyncPort()
int
hashCode()
void
setIp(String ip)
void
setPort(int port)
void
setSyncPort(int syncPort)
-
-
-
Constructor Detail
-
NodeBean
public NodeBean(String ip, int port, int syncPort)
-
-
Method Detail
-
getIp
public String getIp()
-
setIp
public void setIp(String ip)
-
getPort
public int getPort()
-
setPort
public void setPort(int port)
-
getSyncPort
public int getSyncPort()
-
setSyncPort
public void setSyncPort(int syncPort)
-
getIdString
public String getIdString()
-
compareTo
public int compareTo(NodeBean o)
- Specified by:
compareTo
in interfaceComparable<NodeBean>
-
-