clojure.lang
Class Cons

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

public final class Cons
extends ASeq
implements Serializable

See Also:
Serialized Form

Constructor Summary
Cons(IPersistentMap meta, Object _first, ISeq _more)
           
Cons(Object first, ISeq _more)
           
 
Method Summary
 int count()
           
 Object first()
           
 ISeq more()
           
 ISeq next()
           
 Cons withMeta(IPersistentMap meta)
           
 
Methods inherited from class clojure.lang.ASeq
add, add, addAll, addAll, clear, cons, contains, containsAll, empty, equals, equiv, get, hashCode, hasheq, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, 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
 

Constructor Detail

Cons

public Cons(Object first,
            ISeq _more)

Cons

public Cons(IPersistentMap meta,
            Object _first,
            ISeq _more)
Method Detail

first

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

next

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

more

public ISeq more()
Specified by:
more in interface ISeq
Overrides:
more in class ASeq

count

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

withMeta

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


Copyright © 2015. All Rights Reserved.