T
- the type of simulation time, e.g. SimTimeCalendarLong or SimTimeDouble or SimTimeDoubleUnit.public class SynchronizedRedBlackTree<T extends SimTime<?,?,T>> extends Object implements EventListInterface<T>, Serializable
(c) copyright 2002-2005 Delft University of Technology , the Netherlands.
See for project information www.simulation.tudelft.nl
License of use: Lesser General Public License (LGPL) , no warranty.
Constructor and Description |
---|
SynchronizedRedBlackTree()
Constructs a new
SynchronizedRedBlackTree . |
Modifier and Type | Method and Description |
---|---|
boolean |
add(SimEventInterface<T> e) |
boolean |
addAll(Collection<? extends SimEventInterface<T>> c) |
void |
clear() |
Comparator<? super SimEventInterface<T>> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
SimEventInterface<T> |
first()
we re-implemented the first method.
|
SortedSet<SimEventInterface<T>> |
headSet(SimEventInterface<T> toElement) |
boolean |
isEmpty() |
Iterator<SimEventInterface<T>> |
iterator() |
SimEventInterface<T> |
last()
we re-implemented the last method.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
SimEventInterface<T> |
removeFirst() |
SimEventInterface<T> |
removeLast() |
boolean |
retainAll(Collection<?> c) |
int |
size() |
SortedSet<SimEventInterface<T>> |
subSet(SimEventInterface<T> fromElement,
SimEventInterface<T> toElement) |
SortedSet<SimEventInterface<T>> |
tailSet(SimEventInterface<T> fromElement) |
Object[] |
toArray() |
<X> X[] |
toArray(X[] a) |
String |
toString() |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
spliterator
parallelStream, removeIf, stream
public SynchronizedRedBlackTree()
SynchronizedRedBlackTree
.public SimEventInterface<T> removeFirst()
removeFirst
in interface EventListInterface<T extends SimTime<?,?,T>>
public SimEventInterface<T> removeLast()
removeLast
in interface EventListInterface<T extends SimTime<?,?,T>>
public SimEventInterface<T> first()
first
in interface SortedSet<SimEventInterface<T extends SimTime<?,?,T>>>
TreeSet.first()
public SimEventInterface<T> last()
last
in interface SortedSet<SimEventInterface<T extends SimTime<?,?,T>>>
TreeSet.last()
public Comparator<? super SimEventInterface<T>> comparator()
comparator
in interface SortedSet<SimEventInterface<T extends SimTime<?,?,T>>>
public SortedSet<SimEventInterface<T>> subSet(SimEventInterface<T> fromElement, SimEventInterface<T> toElement)
public SortedSet<SimEventInterface<T>> headSet(SimEventInterface<T> toElement)
public SortedSet<SimEventInterface<T>> tailSet(SimEventInterface<T> fromElement)
public int size()
size
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
size
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public boolean isEmpty()
isEmpty
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
isEmpty
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public boolean contains(Object o)
contains
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
contains
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public Iterator<SimEventInterface<T>> iterator()
iterator
in interface Iterable<SimEventInterface<T extends SimTime<?,?,T>>>
iterator
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
iterator
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public Object[] toArray()
toArray
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
toArray
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public <X> X[] toArray(X[] a)
toArray
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
toArray
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public boolean add(SimEventInterface<T> e)
add
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
add
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public boolean remove(Object o)
remove
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
remove
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
containsAll
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public boolean addAll(Collection<? extends SimEventInterface<T>> c)
addAll
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
addAll
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
retainAll
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
removeAll
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
public void clear()
clear
in interface Collection<SimEventInterface<T extends SimTime<?,?,T>>>
clear
in interface Set<SimEventInterface<T extends SimTime<?,?,T>>>
Copyright © 2014–2018 Delft University of Technology. All rights reserved.