openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A > Class Reference

Collaboration diagram for openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >:

Collaboration graph
[legend]

List of all members.


Detailed Description

Class to handle LinkedList with long capacity and not int capacity. Only minimal functions are done.
Parameters:
<A> Class of object in LinkedList
Author:
Frederic Bregier LGPL

Public Member Functions

 LSDLinkedLongList ()
synchronized long size ()
synchronized boolean addLast (A elt)
boolean add (A elt)
synchronized boolean addFirst (A elt)
synchronized A getFirst ()
peek ()
synchronized A getLast ()
poll ()
synchronized A removeFirst ()
remove ()
synchronized A removeLast ()
synchronized void clear ()
void destroy ()
synchronized boolean isEmpty ()
Iterator< A > iterator ()

Private Attributes

long size = 0
LSDLinkedObject first = null
LSDLinkedObject last = null

Classes

class  LSDLinkedObject

Member Function Documentation

openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.LSDLinkedLongList (  ) 

Create an empty LinkedLongList

synchronized long openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.size (  ) 

return the size of the list

Returns:
the size of the list

synchronized boolean openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.addLast ( elt  ) 

Add the object in the end of the list

Parameters:
elt 
Returns:
True if OK, else False

boolean openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.add ( elt  ) 

Add the object in the end of the list

Parameters:
elt 
Returns:
True if OK, else False

synchronized boolean openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.addFirst ( elt  ) 

Add the object in the beginning of the list

Parameters:
elt 
Returns:
True if OK, else False

synchronized A openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.getFirst (  ) 

Get the first element

Returns:
the first element

A openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.peek (  ) 

Get the first element

Returns:
the first element

synchronized A openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.getLast (  ) 

Get the last element

Returns:
the last element

A openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.poll (  ) 

Remove the first element

Returns:
the first element

synchronized A openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.removeFirst (  ) 

Remove and return the first element

Returns:
the first element

A openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.remove (  ) 

Remove and return the first element

Returns:
the first element

synchronized A openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.removeLast (  ) 

Remove and return the last element

Returns:
the last element

synchronized void openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.clear (  ) 

Remove all element from the list

void openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.destroy (  ) 

Destroy the list

synchronized boolean openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.isEmpty (  ) 

Tell if the list is empty

Returns:
True if empty, else False

Iterator<A> openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.iterator (  ) 

Return the iterator for this list

Returns:
the iterator for this list


Member Data Documentation

long openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.size = 0 [private]

Number of elements in the list

LSDLinkedObject openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.first = null [private]

First element

LSDLinkedObject openlsd.common.datatype.openlsd.common.datatype.LSDLinkedLongList< A >.last = null [private]

Last element


The documentation for this class was generated from the following file: