Class Accessors.SynchronizedFieldAccessor
java.lang.Object
com.comphenix.protocol.reflect.accessors.Accessors.SynchronizedFieldAccessor
- All Implemented Interfaces:
FieldAccessor
- Enclosing class:
- Accessors
public static final class Accessors.SynchronizedFieldAccessor
extends Object
implements FieldAccessor
Represents a field accessor that synchronizes access to the underlying field.
- Author:
- Kristian
-
Method Summary
-
Method Details
-
set
Description copied from interface:FieldAccessorSet the value of a field for a particular instance.- Specified by:
setin interfaceFieldAccessor- Parameters:
instance- - the instance, or NULL for a static field.value- - the new value of the field.
-
get
Description copied from interface:FieldAccessorRetrieve the value of a field for a particular instance.- Specified by:
getin interfaceFieldAccessor- Parameters:
instance- - the instance, or NULL for a static field.- Returns:
- The value of the field.
-
getField
Description copied from interface:FieldAccessorRetrieve the underlying field.- Specified by:
getFieldin interfaceFieldAccessor- Returns:
- The field.
-