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 ConcurrentList<T> newList
Create a concurrent list.
abstract ConcurrentList<T> newList(List<E>)
Create a concurrent list.
abstract java.util.concurrent.ConcurrentMap<K,V> newMap(Comparator<T>)
Create a concurrent map.
abstract java.util.concurrent.ConcurrentMap<K,V> newMap(Comparator<T>,Map<K,V>)
Create a concurrent map.
abstract ConcurrentSet<T> newSet(Comparator<T>)
Create a concurrent set.
abstract ConcurrentSet<T> newSet(Comparator<T>,Collection<E>)
Create a concurrent set.
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.
newList
def newList : ConcurrentList<T>

with T

Create a concurrent list.
Parameters:
<T> - the type of the elements in the list.
Returns:
a new instance of list.
Since:
0.12
newList(List<E>)
def newList(List<E>) : ConcurrentList<T>

with T

Create a concurrent list.
Parameters:
<T> - the type of the elements in the list.
toCopy - the most to copy into the new instance.
Returns:
a new instance of list.
Since:
0.15
newMap(Comparator<T>)
def newMap(Comparator<T>) : java.util.concurrent.ConcurrentMap<K,V>

with K, V

Create a concurrent map.
Parameters:
<K> - the type of the keys in the map.
<V> - the type of the values in the map.
comparator - the comparator of keys.
Returns:
a new instance of map.
Since:
0.15
newMap(Comparator<T>,Map<K,V>)
def newMap(Comparator<T>,Map<K,V>) : java.util.concurrent.ConcurrentMap<K,V>

with K, V

Create a concurrent map.
Parameters:
<K> - the type of the keys in the map.
<V> - the type of the values in the map.
comparator - the comparator of keys.
toCopy - the map to copy into the new instance.
Returns:
a new instance of map.
Since:
0.15
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 set.
Parameters:
<T> - the type of the elements in the set.
comparator - the comparator of elements.
toCopy - the set to copy into the new instance.
Returns:
a new instance of set.