Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

coltginy
Class IntLinkedList  view IntLinkedList download IntLinkedList.java

java.lang.Object
  extended bycoltginy.IntLinkedList

public class IntLinkedList
extends java.lang.Object

A singly-linked list consisting of int values.


Nested Class Summary
 class IntLinkedList.Entry
           
 
Field Summary
protected  IntLinkedList.Entry first
           
protected  IntLinkedList.Entry last
           
protected  int size
           
 
Constructor Summary
IntLinkedList()
          Constructs an empty list.
IntLinkedList(int[] elements)
          Constructs a list containing the specified elements.
 
Method Summary
 void add(int value)
           
 void delete(int value)
          Delete the first element in this list that is identical to the given element.
 int[] elements()
           
 IntLinkedList.Entry first()
           
 boolean isEmpty()
           
 IntLinkedList.Entry last()
           
 int size()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

first

protected IntLinkedList.Entry first

last

protected IntLinkedList.Entry last

size

protected int size
Constructor Detail

IntLinkedList

public IntLinkedList()
Constructs an empty list.


IntLinkedList

public IntLinkedList(int[] elements)
Constructs a list containing the specified elements.

Method Detail

first

public IntLinkedList.Entry first()

last

public IntLinkedList.Entry last()

size

public int size()

isEmpty

public boolean isEmpty()

add

public void add(int value)

delete

public void delete(int value)
Delete the first element in this list that is identical to the given element.


elements

public int[] elements()