SSJ API Documentation
Stochastic Simulation in Java
Loading...
Searching...
No Matches
umontreal.ssj.util.TransformingList< OE, IE > Class Template Referenceabstract

Represents a list that dynamically transforms the elements of another list. More...

Inheritance diagram for umontreal.ssj.util.TransformingList< OE, IE >:
umontreal.ssj.simevents.ListWithStat< E > umontreal.ssj.simevents.LinkedListStat< E >

Public Member Functions

 TransformingList (List< IE > fromList)
 Creates a new transforming list wrapping the inner list fromList.
abstract OE convertFromInnerType (IE e)
 Converts an element in the inner list to an element of the outer type.
abstract IE convertToInnerType (OE e)
 Converts an element of the outer type to an element for the inner list.

Detailed Description

Represents a list that dynamically transforms the elements of another list.

This abstract class defines a list containing an inner list of elements of a certain type, and provides facilities to convert these inner elements to outer elements of another type. A concrete subclass simply needs to provide methods for converting between the inner and the outer types.

Parameters
<IE>the inner type of the elements.
<OE>the type of the outer elements.
        <div class="SSJ-bigskip"></div>

Definition at line 44 of file TransformingList.java.

Constructor & Destructor Documentation

◆ TransformingList()

umontreal.ssj.util.TransformingList< OE, IE >.TransformingList ( List< IE > fromList)

Creates a new transforming list wrapping the inner list fromList.

Parameters
fromListthe inner list.

Definition at line 52 of file TransformingList.java.

Member Function Documentation

◆ convertFromInnerType()

abstract OE umontreal.ssj.util.TransformingList< OE, IE >.convertFromInnerType ( IE e)
abstract

Converts an element in the inner list to an element of the outer type.

Parameters
ethe inner element.
Returns
the outer element.

◆ convertToInnerType()

abstract IE umontreal.ssj.util.TransformingList< OE, IE >.convertToInnerType ( OE e)
abstract

Converts an element of the outer type to an element for the inner list.

Parameters
ethe outer element.
Returns
the inner element.

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