public static class ListWithStat.Node<E>
extends java.lang.Object
| Constructor and Description |
|---|
ListWithStat.Node(E element,
double insertionTime)
Constructs a new node containing element
element
inserted into the list at time insertionTime.
|
| Modifier and Type | Method and Description |
|---|---|
E |
getElement()
Returns the element stored into this node.
|
double |
getInsertionTime()
Returns the insertion time of the element in this node.
|
java.lang.String |
toString() |
public ListWithStat.Node(E element, double insertionTime)
element - the element to add into this new nodeinsertionTime - the insertion time of the elementpublic E getElement()
public double getInsertionTime()
public java.lang.String toString()
toString in class java.lang.ObjectTo submit a bug or ask questions, send an e-mail to Pierre L'Ecuyer.