T
- Type of object held inside of the Nodepublic class Node<T>
extends java.lang.Object
BagInterface
, or
SimpleBagInterface
.Constructor and Description |
---|
Node(T dataPortion)
Node constructor which sets its data to be the provided dataPortion.
|
Node(T dataPortion,
Node<T> nextNode)
Node constructor which sets its data to be dataPortion and its following
node to be nextNode.
|
public Node(T dataPortion)
dataPortion
- an instance of an object of type T to be held in this Node.