public final class LazySeq extends Obj implements ISeq, Sequential, java.util.List, IPending, IHashEq
Modifier and Type | Field and Description |
---|---|
private IFn |
fn |
private ISeq |
s |
private java.lang.Object |
sv |
Modifier | Constructor and Description |
---|---|
|
LazySeq(IFn fn) |
private |
LazySeq(IPersistentMap meta,
ISeq s) |
Modifier and Type | Method and Description |
---|---|
void |
add(int index,
java.lang.Object element) |
boolean |
add(java.lang.Object o) |
boolean |
addAll(java.util.Collection c) |
boolean |
addAll(int index,
java.util.Collection c) |
void |
clear() |
ISeq |
cons(java.lang.Object o) |
boolean |
contains(java.lang.Object o) |
boolean |
containsAll(java.util.Collection c) |
int |
count() |
IPersistentCollection |
empty() |
boolean |
equals(java.lang.Object o) |
boolean |
equiv(java.lang.Object o) |
java.lang.Object |
first() |
java.lang.Object |
get(int index) |
int |
hashCode() |
int |
hasheq() |
int |
indexOf(java.lang.Object o) |
boolean |
isEmpty() |
boolean |
isRealized() |
java.util.Iterator |
iterator() |
int |
lastIndexOf(java.lang.Object o) |
java.util.ListIterator |
listIterator() |
java.util.ListIterator |
listIterator(int index) |
ISeq |
more() |
ISeq |
next() |
private java.util.List |
reify() |
java.lang.Object |
remove(int index) |
boolean |
remove(java.lang.Object o) |
boolean |
removeAll(java.util.Collection c) |
boolean |
retainAll(java.util.Collection c) |
ISeq |
seq() |
java.lang.Object |
set(int index,
java.lang.Object element) |
int |
size() |
java.util.List |
subList(int fromIndex,
int toIndex) |
(package private) java.lang.Object |
sval() |
java.lang.Object[] |
toArray() |
java.lang.Object[] |
toArray(java.lang.Object[] a) |
Obj |
withMeta(IPersistentMap meta) |
public LazySeq(IFn fn)
private LazySeq(IPersistentMap meta, ISeq s)
public Obj withMeta(IPersistentMap meta)
final java.lang.Object sval()
public int count()
count
in interface IPersistentCollection
public ISeq cons(java.lang.Object o)
cons
in interface IPersistentCollection
cons
in interface ISeq
public IPersistentCollection empty()
empty
in interface IPersistentCollection
public boolean equiv(java.lang.Object o)
equiv
in interface IPersistentCollection
public int hashCode()
hashCode
in interface java.util.Collection
hashCode
in interface java.util.List
hashCode
in class java.lang.Object
public boolean equals(java.lang.Object o)
equals
in interface java.util.Collection
equals
in interface java.util.List
equals
in class java.lang.Object
public java.lang.Object[] toArray()
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public boolean add(java.lang.Object o)
add
in interface java.util.Collection
add
in interface java.util.List
public boolean remove(java.lang.Object o)
remove
in interface java.util.Collection
remove
in interface java.util.List
public boolean addAll(java.util.Collection c)
addAll
in interface java.util.Collection
addAll
in interface java.util.List
public void clear()
clear
in interface java.util.Collection
clear
in interface java.util.List
public boolean retainAll(java.util.Collection c)
retainAll
in interface java.util.Collection
retainAll
in interface java.util.List
public boolean removeAll(java.util.Collection c)
removeAll
in interface java.util.Collection
removeAll
in interface java.util.List
public boolean containsAll(java.util.Collection c)
containsAll
in interface java.util.Collection
containsAll
in interface java.util.List
public java.lang.Object[] toArray(java.lang.Object[] a)
toArray
in interface java.util.Collection
toArray
in interface java.util.List
public int size()
size
in interface java.util.Collection
size
in interface java.util.List
public boolean isEmpty()
isEmpty
in interface java.util.Collection
isEmpty
in interface java.util.List
public boolean contains(java.lang.Object o)
contains
in interface java.util.Collection
contains
in interface java.util.List
public java.util.Iterator iterator()
iterator
in interface java.lang.Iterable
iterator
in interface java.util.Collection
iterator
in interface java.util.List
private java.util.List reify()
public java.util.List subList(int fromIndex, int toIndex)
subList
in interface java.util.List
public java.lang.Object set(int index, java.lang.Object element)
set
in interface java.util.List
public java.lang.Object remove(int index)
remove
in interface java.util.List
public int indexOf(java.lang.Object o)
indexOf
in interface java.util.List
public int lastIndexOf(java.lang.Object o)
lastIndexOf
in interface java.util.List
public java.util.ListIterator listIterator()
listIterator
in interface java.util.List
public java.util.ListIterator listIterator(int index)
listIterator
in interface java.util.List
public java.lang.Object get(int index)
get
in interface java.util.List
public void add(int index, java.lang.Object element)
add
in interface java.util.List
public boolean addAll(int index, java.util.Collection c)
addAll
in interface java.util.List
public boolean isRealized()
isRealized
in interface IPending