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

List of all members.

Public Member Functions

 Sub (ImmutableList< E > list, int toIndex)
get (int index)
boolean isEmpty ()
Iterator< E > iterator ()
ListIterator< E > listIterator ()
int size ()
getHead ()
ImmutableList< E > getTail ()

Private Attributes

final ImmutableList< E > list
final int toIndex

Detailed Description

An immutable sublist.

Parameters:
<E>The type of the elements

Constructor & Destructor Documentation

metadone.util.ImmutableList< E >.Sub< E >.Sub ( ImmutableList< E >  list,
int  toIndex 
)

Member Function Documentation

E metadone.util.ImmutableList< E >.Sub< E >.get ( int  index)
E metadone.util.ImmutableList< E >.Sub< 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 >.Sub< 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 >.Sub< E >.isEmpty ( )
Iterator<E> metadone.util.ImmutableList< E >.Sub< E >.iterator ( )

Reimplemented from metadone.util.ImmutableList< E >.

ListIterator<E> metadone.util.ImmutableList< E >.Sub< E >.listIterator ( )
int metadone.util.ImmutableList< E >.Sub< E >.size ( )

Member Data Documentation

final ImmutableList<E> metadone.util.ImmutableList< E >.Sub< E >.list [private]
final int metadone.util.ImmutableList< E >.Sub< E >.toIndex [private]

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