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

List of all members.

Public Member Functions

get (int index)
boolean isEmpty ()
ImmutableList< E > subList (int fromIndex, int toIndex)
ListIterator< E > listIterator ()
int size ()
getHead ()
ImmutableList< E > getTail ()

Static Private Attributes

static final Empty< Object > instance = new Empty<Object>()

Detailed Description

An empty list.

Parameters:
<E>The type of the elements
See also:
of()

Member Function Documentation

E metadone.util.ImmutableList< E >.Empty< E >.get ( int  index)
E metadone.util.ImmutableList< E >.Empty< 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 >.Empty< 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 >.Empty< E >.isEmpty ( )
ListIterator<E> metadone.util.ImmutableList< E >.Empty< E >.listIterator ( )
int metadone.util.ImmutableList< E >.Empty< E >.size ( )
ImmutableList<E> metadone.util.ImmutableList< E >.Empty< E >.subList ( int  fromIndex,
int  toIndex 
)

Reimplemented from metadone.util.ImmutableList< E >.


Member Data Documentation

final Empty<Object> metadone.util.ImmutableList< E >.Empty< E >.instance = new Empty<Object>() [static, private]

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