public class Node<T extends Serializable> extends Object
| Constructor and Description |
|---|
Node(int port,
Block<T> firstBlock) |
Node(int localPort,
String remoteAdress,
int remotePort) |
| Modifier and Type | Method and Description |
|---|---|
void |
addBlock(T value) |
void |
addNode(String remoteAdress,
Integer remotePort) |
Block<T> |
getBlockChain() |
public Node(int localPort,
String remoteAdress,
int remotePort)
throws IOException,
ClassNotFoundException
IOExceptionClassNotFoundExceptionpublic void addBlock(T value) throws IOException
IOExceptionpublic void addNode(String remoteAdress, Integer remotePort) throws IOException, ClassNotFoundException
IOExceptionClassNotFoundExceptionCopyright © 2017. All rights reserved.