public static class OtpErlangList.SubList extends OtpErlangList
OtpErlangList.SubList
Modifier and Type | Method and Description |
---|---|
int |
arity()
Get the arity of the list.
|
OtpErlangObject |
elementAt(int i)
Get the specified element from the list.
|
OtpErlangObject[] |
elements()
Get all the elements from the list as an array.
|
void |
encode(OtpOutputStream stream)
Convert this list to the equivalent Erlang external representation.
|
OtpErlangObject |
getHead() |
OtpErlangObject |
getLastTail() |
OtpErlangObject |
getNthTail(int n) |
boolean |
isProper() |
java.util.Iterator<OtpErlangObject> |
iterator() |
java.lang.String |
toString()
Get the string representation of the list.
|
bind, clone, equals, getTail, match, stringValue
decode, hashCode
public int arity()
OtpErlangList
arity
in class OtpErlangList
public OtpErlangObject elementAt(int i)
OtpErlangList
elementAt
in class OtpErlangList
i
- the index of the requested element. List elements are numbered
as array elements, starting at 0.public OtpErlangObject[] elements()
OtpErlangList
elements
in class OtpErlangList
public void encode(OtpOutputStream stream)
OtpErlangList
encode
in class OtpErlangList
stream
- An output stream to which the encoded list should be written.public OtpErlangObject getHead()
getHead
in class OtpErlangList
public OtpErlangObject getLastTail()
getLastTail
in class OtpErlangList
public OtpErlangObject getNthTail(int n)
getNthTail
in class OtpErlangList
public boolean isProper()
isProper
in class OtpErlangList
public java.util.Iterator<OtpErlangObject> iterator()
iterator
in interface java.lang.Iterable<OtpErlangObject>
iterator
in class OtpErlangList
public java.lang.String toString()
OtpErlangList
toString
in class OtpErlangList