io.sarl.lang.core.util
Interface ConcurrentCollectionFactory
All Known Implementing Classes:
DefaultConcurrentCollectionFactory, NoConcurrencyCollectionFactory
interface ConcurrentCollectionFactory
Factory of concurrent collections.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.12
Action Summary
Modifier and type Action and description
abstract ConcurrentCollection<T> newCollection
Create a concurrent collection.
abstract ConcurrentCollection<T> newCollection(Collection<E>)
Create a concurrent collection.
abstract ConcurrentSet<T> newSet(Comparator<T>)
Create a concurrent set.
abstract ConcurrentSet<T> newSet(Comparator<T>,Collection<E>)
Create a concurrent collection.
Action Details
newCollection
def newCollection : ConcurrentCollection<T>

with T

Create a concurrent collection.
Parameters:
<T> - the type of the elements in the collection.
Returns:
a new instance of collection.
newCollection(Collection<E>)
def newCollection(Collection<E>) : ConcurrentCollection<T>

with T

Create a concurrent collection.
Parameters:
<T> - the type of the elements in the collection.
toCopy - the collection to copy into the new instance.
Returns:
a new instance of collection.
newSet(Comparator<T>)
def newSet(Comparator<T>) : ConcurrentSet<T>

with T

Create a concurrent set.
Parameters:
<T> - the type of the elements in the set.
comparator - the comparator of elements.
Returns:
a new instance of set.
newSet(Comparator<T>,Collection<E>)
def newSet(Comparator<T>,Collection<E>) : ConcurrentSet<T>

with T

Create a concurrent collection.
Parameters:
<T> - the type of the elements in the collection.
comparator - the comparator of elements.
toCopy - the collection to copy into the new instance.
Returns:
a new instance of collection.