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 Details

    • set

      public void set(Object instance, Object value)
      Description copied from interface: FieldAccessor
      Set the value of a field for a particular instance.
      Specified by:
      set in interface FieldAccessor
      Parameters:
      instance - - the instance, or NULL for a static field.
      value - - the new value of the field.
    • get

      public Object get(Object instance)
      Description copied from interface: FieldAccessor
      Retrieve the value of a field for a particular instance.
      Specified by:
      get in interface FieldAccessor
      Parameters:
      instance - - the instance, or NULL for a static field.
      Returns:
      The value of the field.
    • getField

      public Field getField()
      Description copied from interface: FieldAccessor
      Retrieve the underlying field.
      Specified by:
      getField in interface FieldAccessor
      Returns:
      The field.