1 |
/* LinkedList.java -- Linked list implementation of the List interface |
/* LinkedList.java -- Linked list implementation of the List interface |
2 |
Copyright (C) 1998, 1999, 2000, 2001 Free Software Foundation, Inc. |
Copyright (C) 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. |
3 |
|
|
4 |
This file is part of GNU Classpath. |
This file is part of GNU Classpath. |
5 |
|
|
130 |
* @param n the number of the entry to get |
* @param n the number of the entry to get |
131 |
* @return the entry at position n |
* @return the entry at position n |
132 |
*/ |
*/ |
133 |
private Entry getEntry(int n) |
// Package visible for use in nested classes. |
134 |
|
Entry getEntry(int n) |
135 |
{ |
{ |
136 |
Entry e; |
Entry e; |
137 |
if (n < size / 2) |
if (n < size / 2) |
157 |
* |
* |
158 |
* @param e the entry to remove |
* @param e the entry to remove |
159 |
*/ |
*/ |
160 |
private void removeEntry(Entry e) |
// Package visible for use in nested classes. |
161 |
|
void removeEntry(Entry e) |
162 |
{ |
{ |
163 |
modCount++; |
modCount++; |
164 |
size--; |
size--; |