Class ConcurrentPriorityCollection<T extends Serializable>
java.lang.Object
org.semanticweb.owlapi.util.PriorityCollection<T>
uk.ac.manchester.cs.owl.owlapi.concurrent.ConcurrentPriorityCollection<T>
- Type Parameters:
T
- type in the collection
- All Implemented Interfaces:
Serializable
,Iterable<T>
Matthew Horridge Stanford Center for Biomedical Informatics Research 09/04/15
A priority collection that supports concurrent reading and writing through a
ReadWriteLock
- See Also:
-
Constructor Summary
ConstructorsConstructorDescriptionConcurrentPriorityCollection
(ReadWriteLock readWriteLock, PriorityCollectionSorting sorting) Constructs aConcurrentPriorityCollection
using the specifiedReadWriteLock
-
Method Summary
Methods inherited from class org.semanticweb.owlapi.util.PriorityCollection
set
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
Methods inherited from interface java.lang.Iterable
forEach, spliterator
-
Constructor Details
-
ConcurrentPriorityCollection
Constructs aConcurrentPriorityCollection
using the specifiedReadWriteLock
- Parameters:
readWriteLock
- TheReadWriteLock
that should be used for locking.sorting
- sorting criterion
-
-
Method Details
-
isEmpty
public boolean isEmpty()- Overrides:
isEmpty
in classPriorityCollection<T extends Serializable>
-
size
public int size()- Overrides:
size
in classPriorityCollection<T extends Serializable>
-
set
- Overrides:
set
in classPriorityCollection<T extends Serializable>
-
add
- Overrides:
add
in classPriorityCollection<T extends Serializable>
-
set
- Overrides:
set
in classPriorityCollection<T extends Serializable>
-
add
- Overrides:
add
in classPriorityCollection<T extends Serializable>
-
add
- Overrides:
add
in classPriorityCollection<T extends Serializable>
-
remove
- Overrides:
remove
in classPriorityCollection<T extends Serializable>
-
remove
- Overrides:
remove
in classPriorityCollection<T extends Serializable>
-
clear
public void clear()- Overrides:
clear
in classPriorityCollection<T extends Serializable>
-
iterator
- Specified by:
iterator
in interfaceIterable<T extends Serializable>
- Overrides:
iterator
in classPriorityCollection<T extends Serializable>
-
getByMIMEType
- Overrides:
getByMIMEType
in classPriorityCollection<T extends Serializable>
-
toString
- Overrides:
toString
in classPriorityCollection<T extends Serializable>
-