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, toString
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
equiv
private 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 IPersistentStack
public IPersistentList pop()
pop
in interface IPersistentStack
public int count()
public PersistentList cons(java.lang.Object o)
public IPersistentCollection empty()
empty
in interface IPersistentCollection
empty
in class ASeq
public PersistentList withMeta(IPersistentMap meta)