Package com.ericsson.otp.erlang
Class OtpErlangList.SubList
- java.lang.Object
- 
- com.ericsson.otp.erlang.OtpErlangObject
- 
- com.ericsson.otp.erlang.OtpErlangList
- 
- com.ericsson.otp.erlang.OtpErlangList.SubList
 
 
 
- 
- All Implemented Interfaces:
- java.io.Serializable,- java.lang.Cloneable,- java.lang.Iterable<OtpErlangObject>
 - Enclosing class:
- OtpErlangList
 
 public static class OtpErlangList.SubList extends OtpErlangList - See Also:
- Serialized Form
 
- 
- 
Nested Class Summary- 
Nested classes/interfaces inherited from class com.ericsson.otp.erlang.OtpErlangListOtpErlangList.SubList
 - 
Nested classes/interfaces inherited from class com.ericsson.otp.erlang.OtpErlangObjectOtpErlangObject.Hash
 
- 
 - 
Field Summary- 
Fields inherited from class com.ericsson.otp.erlang.OtpErlangObjecthashCodeValue
 
- 
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description intarity()Get the arity of the list.OtpErlangObjectelementAt(int i)Get the specified element from the list.OtpErlangObject[]elements()Get all the elements from the list as an array.voidencode(OtpOutputStream stream)Convert this list to the equivalent Erlang external representation.OtpErlangObjectgetHead()OtpErlangObjectgetLastTail()OtpErlangObjectgetNthTail(int n)booleanisProper()java.util.Iterator<OtpErlangObject>iterator()java.lang.StringtoString()Get the string representation of the list.- 
Methods inherited from class com.ericsson.otp.erlang.OtpErlangListbind, clone, doHashCode, encode, equals, getTail, match, stringValue, toString
 - 
Methods inherited from class com.ericsson.otp.erlang.OtpErlangObjectdecode, hashCode
 
- 
 
- 
- 
- 
Method Detail- 
aritypublic int arity() Description copied from class:OtpErlangListGet the arity of the list.- Overrides:
- arityin class- OtpErlangList
- Returns:
- the number of elements contained in the list.
 
 - 
elementAtpublic OtpErlangObject elementAt(int i) Description copied from class:OtpErlangListGet the specified element from the list.- Overrides:
- elementAtin class- OtpErlangList
- Parameters:
- i- the index of the requested element. List elements are numbered as array elements, starting at 0.
- Returns:
- the requested element, of null if i is not a valid element index.
 
 - 
elementspublic OtpErlangObject[] elements() Description copied from class:OtpErlangListGet all the elements from the list as an array.- Overrides:
- elementsin class- OtpErlangList
- Returns:
- an array containing all of the list's elements.
 
 - 
isProperpublic boolean isProper() - Overrides:
- isProperin class- OtpErlangList
- Returns:
- true if the list is proper, i.e. the last tail is nil
 
 - 
getHeadpublic OtpErlangObject getHead() - Overrides:
- getHeadin class- OtpErlangList
 
 - 
getNthTailpublic OtpErlangObject getNthTail(int n) - Overrides:
- getNthTailin class- OtpErlangList
 
 - 
toStringpublic java.lang.String toString() Description copied from class:OtpErlangListGet the string representation of the list.- Overrides:
- toStringin class- OtpErlangList
- Returns:
- the string representation of the list.
 
 - 
encodepublic void encode(OtpOutputStream stream) Description copied from class:OtpErlangListConvert this list to the equivalent Erlang external representation. Note that this method never encodes lists as strings, even when it is possible to do so.- Overrides:
- encodein class- OtpErlangList
- Parameters:
- stream- An output stream to which the encoded list should be written.
 
 - 
getLastTailpublic OtpErlangObject getLastTail() - Overrides:
- getLastTailin class- OtpErlangList
 
 - 
iteratorpublic java.util.Iterator<OtpErlangObject> iterator() - Specified by:
- iteratorin interface- java.lang.Iterable<OtpErlangObject>
- Overrides:
- iteratorin class- OtpErlangList
 
 
- 
 
-