Пример #1
0
  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());
    }
  }
Пример #2
0
 public LjtLinkedList() {
   header._next = header._previous = header;
 }
Пример #3
0
 public void remove() {
   _previous._next = _next;
   _next._previous = _previous;
   LjtLinkedList.this.size--;
 }
Пример #4
0
 public void clear() {
   header._next = header._previous = header;
   size = 0;
 }