Class LinkedList

java.lang.Object
   |
   +----LinkedList

public class LinkedList
extends Object
implements Serializable
リスト構造


Constructor Index

 o LinkedList()

Method Index

 o append(Object)
insert after the tail of the list
 o connect(LinkedList)
 o copy()
 o currentElement()
 o elements()
 o hasMoreElements()
 o head()
 o insert(Object)
insert before the iterator position
 o member(Object)
同じ要素があるか調べる
 o merge(LinkedList)
先方の中から異なるものだけ append する
 o nextElement()
get current element and move the cursor to the next position
 o remove()
remove the element under the cursor
 o remove(Object)
 o reset()
resets the cursor
 o size()
 o substitute(LinkedList)
 o tail()

Constructors

 o LinkedList
 public LinkedList()

Methods

 o copy
 public LinkedList copy()
 o substitute
 public void substitute(LinkedList l)
 o member
 public boolean member(Object element)
同じ要素があるか調べる

 o merge
 public void merge(LinkedList l)
先方の中から異なるものだけ append する

 o remove
 public void remove(Object object)
 o head
 public Object head()
 o tail
 public Object tail()
 o connect
 public void connect(LinkedList l)
 o reset
 public void reset()
resets the cursor

 o hasMoreElements
 public boolean hasMoreElements()
Returns:
true iff the cursor is not at the end of the list
 o nextElement
 public Object nextElement()
get current element and move the cursor to the next position

Returns:
the current element (before advancing the position)
Throws: NoSuchElementException
if already at the end of the list
 o currentElement
 public Object currentElement()
Returns:
the current element under the cursor
Throws: NoSuchElementException
if already at the end of the list
 o insert
 public void insert(Object n)
insert before the iterator position

Parameters:
n - the object to insert
 o append
 public void append(Object n)
insert after the tail of the list

Parameters:
n - - the value to insert
 o remove
 public Object remove()
remove the element under the cursor

Returns:
the removed element
Throws: NoSuchElementException
if already at the end of the list
 o size
 public int size()
Returns:
the number of elements in the list
 o elements
 public Enumeration elements()
Returns:
an enumeration to iterate through all elements in the list