io.sarl.lang.core.util
Interface ConcurrentCollection<T>
Type Parameters:
T - the type of the objects in the collection.
All Superinterfaces:
java.lang.Iterable<T>, java.util.Collection<E>
interface ConcurrentCollection<T>
implements java.util.Collection<E>
Represent a collection of objects with is thread-safe.
Parameters:
<T> - the type of the objects in the collection.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
core
Since:
0.12
Property Summary
Modifier and type Property and description
T first
Replies the first element in the collection.
Action Summary
Modifier and type Action and description
abstract T getFirst
Replies the first element in the collection.
Property Details
first
val first : T
Replies the first element in the collection. If there is no element, an exception is thrown.

This property is an alias for the action: getFirst

Returns:
the first element.
Action Details
getFirst
def getFirst : T
Replies the first element in the collection. If there is no element, an exception is thrown.
Returns:
the first element.