| Modifier and Type | Method and Description |
|---|---|
Block<T> |
Node.getBlockChain() |
Block<T> |
Block.getPrevious()
Return the previous block in the chain.
|
| Modifier and Type | Method and Description |
|---|---|
Iterator<Block<T>> |
Block.iterator() |
java.util.stream.Stream<Block<T>> |
Block.stream()
Returns a sequential Stream with this blockchain as its source.
|
| Modifier and Type | Method and Description |
|---|---|
static <T extends Serializable> |
Block.compare(Block<T> firstChain,
Block<T> secondChain)
Compare two blocks and return the best one.
|
static <T extends Serializable> |
Block.compare(Block<T> firstChain,
Block<T> secondChain)
Compare two blocks and return the best one.
|
int |
Block.compareTo(Block<T> o) |
| Constructor and Description |
|---|
Block(T data,
Block<T> previous)
Create a new block in the chain.
|
Node(int port,
Block<T> firstBlock) |
Copyright © 2017. All rights reserved.