|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Object | +--com.pdmfc.tea.runtime.SObjPair
Implements a pair. A list can easily be built with this kind of objects.
| Field Summary | |
java.lang.Object |
_car
The left hand side object of the pair. |
java.lang.Object |
_cdr
The right hand side object of the pair. |
| Constructor Summary | |
SObjPair()
Builds a pair with nothing inside it. |
|
SObjPair(java.lang.Object car,
java.lang.Object cdr)
Builds a pair containing two objects. |
|
| Method Summary | |
java.util.Enumeration |
elements()
Deprecated. Use iterator(). |
static SObjPair |
emptyList()
Creates a pair representing an empty list. |
java.util.Iterator |
iterator()
Builds an java.util.Iterator that will orderly
iterator over the elements in the list whose head is this
SObjPair object. |
int |
length()
Determines the size of the list starting with this node. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public java.lang.Object _car
public java.lang.Object _cdr
| Constructor Detail |
public SObjPair()
public SObjPair(java.lang.Object car,
java.lang.Object cdr)
car - The left hand side object.cdr - The right hand side object.| Method Detail |
public static SObjPair emptyList()
SObjPair object representing
the empty list.
public int length()
throws SRuntimeException
SRuntimeException - Thrown if the
list starting with this node is not properly formed.public java.util.Enumeration elements()
iterator().
java.util.Enumeration that will orderly
iterator over the elements in the list whose head is this
SObjPair object.java.util.Enumeration object
that will iterate over the list elements.public java.util.Iterator iterator()
java.util.Iterator that will orderly
iterator over the elements in the list whose head is this
SObjPair object.java.util.Iterator object that
will iterate over the list elements.
|
Tea Java Runtime API Version 3.1.0 |
|||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||