- 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> -
- Maven Group Identifier:
-
- Maven Artifact Identifier:
-
- Since:
-
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. |
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:
-
Action Details
- getFirst
-
def getFirst : T
Replies the first element in the collection. If there is no element, an exception is thrown.
- Returns:
-