Represents a list that dynamically transforms the elements of another list. More...
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. | |
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.
| <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.
| umontreal.ssj.util.TransformingList< OE, IE >.TransformingList | ( | List< IE > | fromList | ) |
Creates a new transforming list wrapping the inner list fromList.
| fromList | the inner list. |
Definition at line 52 of file TransformingList.java.
|
abstract |
Converts an element in the inner list to an element of the outer type.
| e | the inner element. |
|
abstract |
Converts an element of the outer type to an element for the inner list.
| e | the outer element. |