public class MutablePrioritizedList<E extends Prioritized> extends java.lang.Object implements PrioritizedList<E>
| Constructor and Description |
|---|
MutablePrioritizedList() |
MutablePrioritizedList(java.lang.Iterable<E> elements) |
| Modifier and Type | Method and Description |
|---|---|
void |
add(E element) |
void |
clear() |
boolean |
contains(E element) |
E |
first() |
boolean |
isEmpty() |
@NotNull java.util.Iterator<E> |
iterator() |
E |
last() |
void |
remove(E element) |
int |
size() |
java.util.stream.Stream<E> |
stream() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitofpublic MutablePrioritizedList()
public MutablePrioritizedList(java.lang.Iterable<E> elements)
public void add(E element)
public void remove(E element)
public void clear()
public boolean contains(E element)
contains in interface PrioritizedList<E extends Prioritized>public boolean isEmpty()
isEmpty in interface PrioritizedList<E extends Prioritized>public int size()
size in interface PrioritizedList<E extends Prioritized>public E first()
first in interface PrioritizedList<E extends Prioritized>public E last()
last in interface PrioritizedList<E extends Prioritized>public java.util.stream.Stream<E> stream()
stream in interface PrioritizedList<E extends Prioritized>@NotNull public @NotNull java.util.Iterator<E> iterator()
iterator in interface java.lang.Iterable<E extends Prioritized>