clojure.lang
Class PersistentList

java.lang.Object
  extended by clojure.lang.Obj
      extended by clojure.lang.ASeq
          extended by clojure.lang.PersistentList
All Implemented Interfaces:
Counted, IHashEq, IMeta, IObj, IPersistentCollection, IPersistentList, IPersistentStack, IReduce, ISeq, Seqable, Sequential, Serializable, Iterable, Collection, List

public class PersistentList
extends ASeq
implements IPersistentList, IReduce, List, Counted

See Also:
Serialized Form

Field Summary
static IFn creator
           
static clojure.lang.PersistentList.EmptyList EMPTY
           
 
Constructor Summary
PersistentList(Object first)
           
 
Method Summary
 PersistentList cons(Object o)
           
 int count()
           
static IPersistentList create(List init)
           
 IPersistentCollection empty()
           
 Object first()
           
 ISeq next()
           
 Object peek()
           
 IPersistentList pop()
           
 Object reduce(IFn f)
           
 Object reduce(IFn f, Object start)
           
 PersistentList withMeta(IPersistentMap meta)
           
 
Methods inherited from class clojure.lang.ASeq
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
 
Methods inherited from class clojure.lang.Obj
meta
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface clojure.lang.IPersistentCollection
equiv
 
Methods inherited from interface clojure.lang.Seqable
seq
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, get, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, size, subList, toArray, toArray
 

Field Detail

creator

public static IFn creator

EMPTY

public static final clojure.lang.PersistentList.EmptyList EMPTY
Constructor Detail

PersistentList

public PersistentList(Object first)
Method Detail

create

public static IPersistentList create(List init)

first

public Object first()
Specified by:
first in interface ISeq

next

public ISeq next()
Specified by:
next in interface ISeq

peek

public Object peek()
Specified by:
peek in interface IPersistentStack

pop

public IPersistentList pop()
Specified by:
pop in interface IPersistentStack

count

public int count()
Specified by:
count in interface Counted
Specified by:
count in interface IPersistentCollection
Overrides:
count in class ASeq

cons

public PersistentList cons(Object o)
Specified by:
cons in interface IPersistentCollection
Specified by:
cons in interface ISeq
Overrides:
cons in class ASeq

empty

public IPersistentCollection empty()
Specified by:
empty in interface IPersistentCollection
Overrides:
empty in class ASeq

withMeta

public PersistentList withMeta(IPersistentMap meta)
Specified by:
withMeta in interface IObj
Specified by:
withMeta in class Obj

reduce

public Object reduce(IFn f)
Specified by:
reduce in interface IReduce

reduce

public Object reduce(IFn f,
                     Object start)
Specified by:
reduce in interface IReduce


Copyright © 2014. All Rights Reserved.