public class LinkedList
extends java.lang.Object
| Constructor and Description |
|---|
LinkedList()
Class constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clear this list contents.
|
void |
insertFirst(java.lang.Object o)
Inserts the given object at the first position.
|
void |
insertLast(java.lang.Object o)
Inserts the given element at the end of the list.
|
boolean |
isEmpty()
Retrieves whether the linked list is empty or not.
|
java.lang.Object |
removeFirst()
Removes the first element of the list and return it.
|
java.lang.Object |
removeLast()
Removes the last element of the list and returns it.
|
public LinkedList()
public void clear()
public void insertFirst(java.lang.Object o)
o - Object to insert at first position.public void insertLast(java.lang.Object o)
o - Object to insert at the end of the list.public boolean isEmpty()
public java.lang.Object removeFirst()
public java.lang.Object removeLast()
© Copyright 2014 Etherios, Inc. All rights reserved. Etherios, Inc. is a Division of Digi International Inc.