|
SSJ
3.2.1
Stochastic Simulation in Java
|
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. More... | |
| List< IE > | getInnerList () |
| abstract OE | convertFromInnerType (IE e) |
| Converts an element in the inner list to an element of the outer type. More... | |
| abstract IE | convertToInnerType (OE e) |
| Converts an element of the outer type to an element for the inner list. More... | |
| void | add (int index, OE element) |
| void | clear () |
| OE | get (int index) |
| Iterator< OE > | iterator () |
| ListIterator< OE > | listIterator () |
| ListIterator< OE > | listIterator (int index) |
| OE | remove (int index) |
| OE | set (int index, OE element) |
| int | size () |
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. |
| TransformingList | ( | List< IE > | fromList | ) |
Creates a new transforming list wrapping the inner list fromList.
| fromList | the inner list. |
|
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. |
1.8.14