示例#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;
 }