MetaDone
metadone.util.ImmutableList< E >.HT< E > Class Reference
Inheritance diagram for metadone.util.ImmutableList< E >.HT< E >:
Collaboration diagram for metadone.util.ImmutableList< E >.HT< E >:

List of all members.

Public Member Functions

 HT (E elem, ImmutableList< E > immutableList)
getHead ()
ImmutableList< E > getTail ()
get (int index)
boolean isEmpty ()
ListIterator< E > listIterator ()
int size ()

Private Attributes

final E head
final ImmutableList< E > tail

Detailed Description

A head/tail list.

Parameters:
<E>The type of the elements

Constructor & Destructor Documentation

metadone.util.ImmutableList< E >.HT< E >.HT ( elem,
ImmutableList< E >  immutableList 
)

Member Function Documentation

E metadone.util.ImmutableList< E >.HT< E >.get ( int  index)
E metadone.util.ImmutableList< E >.HT< E >.getHead ( ) [virtual]

Gets the head.

Returns:
h where this = [h|_]
Exceptions:
NoSuchElementExceptionwhen this is empty

Implements metadone.util.ImmutableList< E >.

ImmutableList<E> metadone.util.ImmutableList< E >.HT< E >.getTail ( ) [virtual]

Gets the tail.

Returns:
t where this = [_|t]
Exceptions:
NoSuchElementExceptionwhen this is empty

Implements metadone.util.ImmutableList< E >.

boolean metadone.util.ImmutableList< E >.HT< E >.isEmpty ( )
ListIterator<E> metadone.util.ImmutableList< E >.HT< E >.listIterator ( )
int metadone.util.ImmutableList< E >.HT< E >.size ( )

Member Data Documentation

final E metadone.util.ImmutableList< E >.HT< E >.head [private]
final ImmutableList<E> metadone.util.ImmutableList< E >.HT< E >.tail [private]

The documentation for this class was generated from the following file:
 All Classes Namespaces Files Functions Variables Enumerations