public class PersistentQueue extends Obj implements IPersistentList, Collection, Counted, IHashEq
Modifier and Type | Field and Description |
---|---|
static PersistentQueue |
EMPTY |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Object o) |
boolean |
addAll(Collection c) |
void |
clear() |
PersistentQueue |
cons(Object o) |
boolean |
contains(Object o) |
boolean |
containsAll(Collection c) |
int |
count() |
IPersistentCollection |
empty() |
boolean |
equals(Object obj) |
boolean |
equiv(Object obj) |
int |
hashCode() |
int |
hasheq() |
boolean |
isEmpty() |
Iterator |
iterator() |
Object |
peek() |
PersistentQueue |
pop() |
boolean |
remove(Object o) |
boolean |
removeAll(Collection c) |
boolean |
retainAll(Collection c) |
ISeq |
seq() |
int |
size() |
Object[] |
toArray() |
Object[] |
toArray(Object[] a) |
PersistentQueue |
withMeta(IPersistentMap meta) |
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
parallelStream, removeIf, spliterator, stream
public static final PersistentQueue EMPTY
public boolean equiv(Object obj)
equiv
in interface IPersistentCollection
public boolean equals(Object obj)
equals
in interface Collection
equals
in class Object
public int hashCode()
hashCode
in interface Collection
hashCode
in class Object
public Object peek()
peek
in interface IPersistentStack
public PersistentQueue pop()
pop
in interface IPersistentStack
public int count()
count
in interface Counted
count
in interface IPersistentCollection
public PersistentQueue cons(Object o)
cons
in interface IPersistentCollection
public IPersistentCollection empty()
empty
in interface IPersistentCollection
public PersistentQueue withMeta(IPersistentMap meta)
public Object[] toArray()
toArray
in interface Collection
public boolean add(Object o)
add
in interface Collection
public boolean remove(Object o)
remove
in interface Collection
public boolean addAll(Collection c)
addAll
in interface Collection
public void clear()
clear
in interface Collection
public boolean retainAll(Collection c)
retainAll
in interface Collection
public boolean removeAll(Collection c)
removeAll
in interface Collection
public boolean containsAll(Collection c)
containsAll
in interface Collection
public Object[] toArray(Object[] a)
toArray
in interface Collection
public int size()
size
in interface Collection
public boolean isEmpty()
isEmpty
in interface Collection
public boolean contains(Object o)
contains
in interface Collection
public Iterator iterator()
iterator
in interface Iterable
iterator
in interface Collection
Copyright © 2021. All rights reserved.