Class PeerEntry
- java.lang.Object
-
- com.syntifi.casper.sdk.model.peer.PeerEntry
-
public class PeerEntry extends java.lang.Object
The node ID and network address of each connected peer.- Since:
- 0.0.1
-
-
Constructor Summary
Constructors Constructor Description PeerEntry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.lang.String
getAddress()
IP:PORTjava.lang.String
getNodeId()
node IDint
hashCode()
void
setAddress(java.lang.String address)
IP:PORTvoid
setNodeId(java.lang.String nodeId)
node IDjava.lang.String
toString()
-
-
-
Method Detail
-
getAddress
public java.lang.String getAddress()
IP:PORT
-
getNodeId
public java.lang.String getNodeId()
node ID
-
setAddress
public void setAddress(java.lang.String address)
IP:PORT
-
setNodeId
public void setNodeId(java.lang.String nodeId)
node ID
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-