io.sarl.api.util
Class Collections3
final class Collections3
extends java.lang.Object
Utilities on collections.
Maven Group Identifier:
io.sarl.sdk
Maven Artifact Identifier:
api.util
Action Summary
Modifier and type Action and description
static java.util.Collection<E> serializableCollection(Collection<E>)
Replies a serializable collection.
Action Details
serializableCollection(Collection<E>)
def serializableCollection(Collection<E>) : java.util.Collection<E>

with T

Replies a serializable collection. If the wrapped collection is serializable, it is replied itself without wrapping. If the wrapped collection is not serializable, it is wrapped into a collection that supports serialization of the collection elements.
Parameters:
<T> - - type of the elements in the collection.
elements - the set to transform as unmodifiable collection.
Returns:
an unmodifiable synchronized set.
Since:
0.8.6