Linklist have static class named as ENTRY
private static class Entry<E> {
E element;
Entry<E> next;
Entry<E> previous;
Entry(E paramE, Entry<E> paramEntry1, Entry<E> paramEntry2){
this.element = paramE;
this.next = paramEntry1;
this.previous = paramEntry2;
}
}
And an object has created inside LinkList
private transient Entry<E> header = new Entry(null, null, null);
Following are my questions?
- Why it is static ?
- If we define more than two LinkList will it share the same static class 'Entry'?