gnu.lists
public class Pair extends LList implements Externalizable
| Field Summary | |
|---|---|
| Object | car |
| Object | cdr |
| Constructor Summary | |
|---|---|
| Pair(Object carval, Object cdrval) | |
| Pair() | |
| Method Summary | |
|---|---|
| static int | compareTo(Pair pair1, Pair pair2) |
| int | compareTo(Object obj) |
| static boolean | equals(Pair pair1, Pair pair2) |
| boolean | equals(Object obj) |
| Object | get(int index) |
| Object | getPosNext(int ipos) |
| Object | getPosPrevious(int ipos) |
| int | hashCode() |
| boolean | hasNext(int ipos) |
| boolean | isEmpty() |
| Pair | lastPair() |
| int | length() |
| static Pair | make(Object car, Object cdr) |
| int | nextPos(int ipos) |
| void | readExternal(ObjectInput in) |
| Object | readResolve() Needed to override readResolve in LList. |
| int | size() |
| Object[] | toArray() |
| Object[] | toArray(Object[] arr) |
| void | writeExternal(ObjectOutput out) |
Serial Data: Write the car followed by the cdr.