libperun

Class std.cont.LinkedList

Synopsis

public  class LinkedList< T > extends List< T >

A linked list. Element access is O(n) but additions and removals are O(1).

Fields

Constructors

public LinkedList(Iterator< T > source);

Construct the list from the elements in the given iterator.

public LinkedList(T[] elements);

Construct the list from the specified array.

Methods

protected T get(int index);

No description given

protected void set(int index,T value);

No description given

public void prepend(T value);

No description given

public void append(T value);

No description given

public void remove(int index);

No description given

public void insert(int index,T value);

No description given

public int size();

No description given

public Iterator< T > iterate();

No description given