public static class OtpErlangList.SubList extends OtpErlangList
OtpErlangList.SubListOtpErlangObject.HashhashCodeValue| 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, doHashCode, encode, equals, getTail, match, stringValue, toStringdecode, hashCodepublic int arity()
OtpErlangListarity in class OtpErlangListpublic OtpErlangObject elementAt(int i)
OtpErlangListelementAt in class OtpErlangListi - the index of the requested element. List elements are numbered
as array elements, starting at 0.public OtpErlangObject[] elements()
OtpErlangListelements in class OtpErlangListpublic boolean isProper()
isProper in class OtpErlangListpublic OtpErlangObject getHead()
getHead in class OtpErlangListpublic OtpErlangObject getNthTail(int n)
getNthTail in class OtpErlangListpublic java.lang.String toString()
OtpErlangListtoString in class OtpErlangListpublic void encode(OtpOutputStream stream)
OtpErlangListencode in class OtpErlangListstream - An output stream to which the encoded list should be written.public OtpErlangObject getLastTail()
getLastTail in class OtpErlangListpublic java.util.Iterator<OtpErlangObject> iterator()
iterator in interface java.lang.Iterable<OtpErlangObject>iterator in class OtpErlangList