public class TraverserSet<S> extends AbstractSet<Traverser.Admin<S>> implements Set<Traverser.Admin<S>>, Queue<Traverser.Admin<S>>, Serializable
Constructor and Description |
---|
TraverserSet() |
TraverserSet(Traverser.Admin<S> traverser) |
Modifier and Type | Method and Description |
---|---|
boolean |
add(Traverser.Admin<S> traverser) |
long |
bulkSize() |
void |
clear() |
boolean |
contains(Object traverser) |
Traverser.Admin<S> |
element() |
Traverser.Admin<S> |
get(Traverser.Admin<S> traverser) |
boolean |
isEmpty() |
Iterator<Traverser.Admin<S>> |
iterator() |
boolean |
offer(Traverser.Admin<S> traverser) |
Traverser.Admin<S> |
peek() |
Traverser.Admin<S> |
poll() |
Traverser.Admin<S> |
remove() |
boolean |
remove(Object traverser) |
void |
shuffle() |
int |
size() |
void |
sort(Comparator<Traverser<S>> comparator) |
Spliterator<Traverser.Admin<S>> |
spliterator() |
String |
toString() |
equals, hashCode, removeAll
addAll, containsAll, retainAll, toArray, toArray
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
addAll, containsAll, equals, hashCode, removeAll, retainAll, toArray, toArray
parallelStream, removeIf, stream
public TraverserSet()
public TraverserSet(Traverser.Admin<S> traverser)
public Iterator<Traverser.Admin<S>> iterator()
iterator
in interface Iterable<Traverser.Admin<S>>
iterator
in interface Collection<Traverser.Admin<S>>
iterator
in interface Set<Traverser.Admin<S>>
iterator
in class AbstractCollection<Traverser.Admin<S>>
public Traverser.Admin<S> get(Traverser.Admin<S> traverser)
public int size()
size
in interface Collection<Traverser.Admin<S>>
size
in interface Set<Traverser.Admin<S>>
size
in class AbstractCollection<Traverser.Admin<S>>
public long bulkSize()
public boolean isEmpty()
isEmpty
in interface Collection<Traverser.Admin<S>>
isEmpty
in interface Set<Traverser.Admin<S>>
isEmpty
in class AbstractCollection<Traverser.Admin<S>>
public boolean contains(Object traverser)
contains
in interface Collection<Traverser.Admin<S>>
contains
in interface Set<Traverser.Admin<S>>
contains
in class AbstractCollection<Traverser.Admin<S>>
public boolean add(Traverser.Admin<S> traverser)
add
in interface Collection<Traverser.Admin<S>>
add
in interface Queue<Traverser.Admin<S>>
add
in interface Set<Traverser.Admin<S>>
add
in class AbstractCollection<Traverser.Admin<S>>
public boolean offer(Traverser.Admin<S> traverser)
offer
in interface Queue<Traverser.Admin<S>>
public Traverser.Admin<S> remove()
remove
in interface Queue<Traverser.Admin<S>>
public Traverser.Admin<S> poll()
poll
in interface Queue<Traverser.Admin<S>>
public Traverser.Admin<S> element()
element
in interface Queue<Traverser.Admin<S>>
public Traverser.Admin<S> peek()
peek
in interface Queue<Traverser.Admin<S>>
public boolean remove(Object traverser)
remove
in interface Collection<Traverser.Admin<S>>
remove
in interface Set<Traverser.Admin<S>>
remove
in class AbstractCollection<Traverser.Admin<S>>
public void clear()
clear
in interface Collection<Traverser.Admin<S>>
clear
in interface Set<Traverser.Admin<S>>
clear
in class AbstractCollection<Traverser.Admin<S>>
public Spliterator<Traverser.Admin<S>> spliterator()
spliterator
in interface Iterable<Traverser.Admin<S>>
spliterator
in interface Collection<Traverser.Admin<S>>
spliterator
in interface Set<Traverser.Admin<S>>
public String toString()
toString
in class AbstractCollection<Traverser.Admin<S>>
public void sort(Comparator<Traverser<S>> comparator)
public void shuffle()
Copyright © 2013–2021 Apache Software Foundation. All rights reserved.