public class PersistentList extends ASeq implements IPersistentList, IReduce, java.util.List, Counted
| Modifier and Type | Class and Description |
|---|---|
(package private) static class |
PersistentList.EmptyList |
| Modifier and Type | Field and Description |
|---|---|
private int |
_count |
private java.lang.Object |
_first |
private IPersistentList |
_rest |
static IFn |
creator |
static PersistentList.EmptyList |
EMPTY |
| Constructor and Description |
|---|
PersistentList(IPersistentMap meta,
java.lang.Object _first,
IPersistentList _rest,
int _count) |
PersistentList(java.lang.Object first) |
| Modifier and Type | Method and Description |
|---|---|
PersistentList |
cons(java.lang.Object o) |
int |
count() |
static IPersistentList |
create(java.util.List init) |
IPersistentCollection |
empty() |
java.lang.Object |
first() |
ISeq |
next() |
java.lang.Object |
peek() |
IPersistentList |
pop() |
java.lang.Object |
reduce(IFn f) |
java.lang.Object |
reduce(IFn f,
java.lang.Object start) |
PersistentList |
withMeta(IPersistentMap meta) |
add, add, addAll, addAll, clear, contains, containsAll, equals, equiv, get, hashCode, hasheq, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, more, remove, remove, removeAll, retainAll, seq, set, size, subList, toArray, toArray, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitequivprivate final java.lang.Object _first
private final IPersistentList _rest
private final int _count
public static IFn creator
public static final PersistentList.EmptyList EMPTY
public PersistentList(java.lang.Object first)
PersistentList(IPersistentMap meta, java.lang.Object _first, IPersistentList _rest, int _count)
public static IPersistentList create(java.util.List init)
public java.lang.Object peek()
peek in interface IPersistentStackpublic IPersistentList pop()
pop in interface IPersistentStackpublic int count()
public PersistentList cons(java.lang.Object o)
public IPersistentCollection empty()
empty in interface IPersistentCollectionempty in class ASeqpublic PersistentList withMeta(IPersistentMap meta)