io.sarl.lang.async
Interface ISynchronizedFieldDetector
All Known Implementing Classes:
StandardSynchronizedFieldDetector
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or action reference.
interface ISynchronizedFieldDetector
Helper that determine if a field is synchronized or not.
Maven Group Identifier:
io.sarl.lang
Maven Artifact Identifier:
compiler
Since:
0.12
Action Summary
Modifier and type Action and description
abstract boolean isSynchronizedField(XtendField)
Check if the given field is considered as synchronized.
Action Details
isSynchronizedField(XtendField)
def isSynchronizedField(XtendField) : boolean
Check if the given field is considered as synchronized.

A field is synchronized when it has a thread-safe type, or declared with the volatile or final modifiers (in the case of primitive types).
Parameters:
field - the field to test
Returns:
true if the given field is synchronized, otherwise false .