T
- the type of simulation time, e.g. SimTimeCalendarLong or SimTimeDouble or SimTimeDoubleUnit.public class SynchronizedRedBlackTree<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>> extends Object implements nl.tudelft.simulation.dsol.eventlists.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(nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> e) |
boolean |
addAll(Collection<? extends nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> c) |
void |
clear() |
Comparator<? super nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> |
comparator() |
boolean |
contains(Object o) |
boolean |
containsAll(Collection<?> c) |
nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> |
first()
we re-implemented the first method.
|
SortedSet<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> |
headSet(nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> toElement) |
boolean |
isEmpty() |
Iterator<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> |
iterator() |
nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> |
last()
we re-implemented the last method.
|
boolean |
remove(Object o) |
boolean |
removeAll(Collection<?> c) |
nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> |
removeFirst() |
nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> |
removeLast() |
boolean |
retainAll(Collection<?> c) |
int |
size() |
SortedSet<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> |
subSet(nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> fromElement,
nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> toElement) |
SortedSet<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> |
tailSet(nl.tudelft.simulation.dsol.formalisms.eventscheduling.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 nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> removeFirst()
public nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> removeLast()
public nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> first()
first
in interface SortedSet<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
TreeSet.first()
public nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> last()
last
in interface SortedSet<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
TreeSet.last()
public Comparator<? super nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> comparator()
comparator
in interface SortedSet<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public SortedSet<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> subSet(nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> fromElement, nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> toElement)
public SortedSet<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> headSet(nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> toElement)
public SortedSet<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> tailSet(nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> fromElement)
public int size()
size
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
size
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public boolean isEmpty()
isEmpty
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
isEmpty
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public boolean contains(Object o)
contains
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
contains
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public Iterator<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> iterator()
iterator
in interface Iterable<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
iterator
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
iterator
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public Object[] toArray()
toArray
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
toArray
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public <X> X[] toArray(X[] a)
toArray
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
toArray
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public boolean add(nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T> e)
add
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
add
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public boolean remove(Object o)
remove
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
remove
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public boolean containsAll(Collection<?> c)
containsAll
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
containsAll
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public boolean addAll(Collection<? extends nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T>> c)
addAll
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
addAll
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public boolean retainAll(Collection<?> c)
retainAll
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
retainAll
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public boolean removeAll(Collection<?> c)
removeAll
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
removeAll
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
public void clear()
clear
in interface Collection<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
clear
in interface Set<nl.tudelft.simulation.dsol.formalisms.eventscheduling.SimEventInterface<T extends nl.tudelft.simulation.dsol.simtime.SimTime<?,?,T>>>
Copyright © 2014–2017 Delft University of Technology. All rights reserved.