clojure.lang
Class LazySeq

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

public final class LazySeq
extends Obj
implements ISeq, Sequential, List, IPending, IHashEq

See Also:
Serialized Form

Constructor Summary
LazySeq(IFn fn)
           
 
Method Summary
 void add(int index, Object element)
           
 boolean add(Object o)
           
 boolean addAll(Collection c)
           
 boolean addAll(int index, Collection c)
           
 void clear()
           
 ISeq cons(Object o)
           
 boolean contains(Object o)
           
 boolean containsAll(Collection c)
           
 int count()
           
 IPersistentCollection empty()
           
 boolean equals(Object o)
           
 boolean equiv(Object o)
           
 Object first()
           
 Object get(int index)
           
 int hashCode()
           
 int hasheq()
           
 int indexOf(Object o)
           
 boolean isEmpty()
           
 boolean isRealized()
           
 Iterator iterator()
           
 int lastIndexOf(Object o)
           
 ListIterator listIterator()
           
 ListIterator listIterator(int index)
           
 ISeq more()
           
 ISeq next()
           
 Object remove(int index)
           
 boolean remove(Object o)
           
 boolean removeAll(Collection c)
           
 boolean retainAll(Collection c)
           
 ISeq seq()
           
 Object set(int index, Object element)
           
 int size()
           
 List subList(int fromIndex, int toIndex)
           
 Object[] toArray()
           
 Object[] toArray(Object[] a)
           
 Obj withMeta(IPersistentMap meta)
           
 
Methods inherited from class clojure.lang.Obj
meta
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LazySeq

public LazySeq(IFn fn)
Method Detail

withMeta

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

seq

public final ISeq seq()
Specified by:
seq in interface Seqable

count

public int count()
Specified by:
count in interface IPersistentCollection

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

cons

public ISeq cons(Object o)
Specified by:
cons in interface IPersistentCollection
Specified by:
cons in interface ISeq

empty

public IPersistentCollection empty()
Specified by:
empty in interface IPersistentCollection

equiv

public boolean equiv(Object o)
Specified by:
equiv in interface IPersistentCollection

hashCode

public int hashCode()
Specified by:
hashCode in interface Collection
Specified by:
hashCode in interface List
Overrides:
hashCode in class Object

hasheq

public int hasheq()
Specified by:
hasheq in interface IHashEq

equals

public boolean equals(Object o)
Specified by:
equals in interface Collection
Specified by:
equals in interface List
Overrides:
equals in class Object

toArray

public Object[] toArray()
Specified by:
toArray in interface Collection
Specified by:
toArray in interface List

add

public boolean add(Object o)
Specified by:
add in interface Collection
Specified by:
add in interface List

remove

public boolean remove(Object o)
Specified by:
remove in interface Collection
Specified by:
remove in interface List

addAll

public boolean addAll(Collection c)
Specified by:
addAll in interface Collection
Specified by:
addAll in interface List

clear

public void clear()
Specified by:
clear in interface Collection
Specified by:
clear in interface List

retainAll

public boolean retainAll(Collection c)
Specified by:
retainAll in interface Collection
Specified by:
retainAll in interface List

removeAll

public boolean removeAll(Collection c)
Specified by:
removeAll in interface Collection
Specified by:
removeAll in interface List

containsAll

public boolean containsAll(Collection c)
Specified by:
containsAll in interface Collection
Specified by:
containsAll in interface List

toArray

public Object[] toArray(Object[] a)
Specified by:
toArray in interface Collection
Specified by:
toArray in interface List

size

public int size()
Specified by:
size in interface Collection
Specified by:
size in interface List

isEmpty

public boolean isEmpty()
Specified by:
isEmpty in interface Collection
Specified by:
isEmpty in interface List

contains

public boolean contains(Object o)
Specified by:
contains in interface Collection
Specified by:
contains in interface List

iterator

public Iterator iterator()
Specified by:
iterator in interface Iterable
Specified by:
iterator in interface Collection
Specified by:
iterator in interface List

subList

public List subList(int fromIndex,
                    int toIndex)
Specified by:
subList in interface List

set

public Object set(int index,
                  Object element)
Specified by:
set in interface List

remove

public Object remove(int index)
Specified by:
remove in interface List

indexOf

public int indexOf(Object o)
Specified by:
indexOf in interface List

lastIndexOf

public int lastIndexOf(Object o)
Specified by:
lastIndexOf in interface List

listIterator

public ListIterator listIterator()
Specified by:
listIterator in interface List

listIterator

public ListIterator listIterator(int index)
Specified by:
listIterator in interface List

get

public Object get(int index)
Specified by:
get in interface List

add

public void add(int index,
                Object element)
Specified by:
add in interface List

addAll

public boolean addAll(int index,
                      Collection c)
Specified by:
addAll in interface List

isRealized

public boolean isRealized()
Specified by:
isRealized in interface IPending


Copyright © 2015. All Rights Reserved.