public void readExternal(ObjectInput s) throws IOException, ClassNotFoundException { int size = s.readInt(); header = new Entry(null, null, null); header._next = header._previous = header; for (int i = 0; i < size; i++) { addLast(s.readObject()); } }
public LjtLinkedList() { header._next = header._previous = header; }
public void remove() { _previous._next = _next; _next._previous = _previous; LjtLinkedList.this.size--; }
public void clear() { header._next = header._previous = header; size = 0; }