Class FieldAccessor

  • All Implemented Interfaces:
    org.bson.codecs.pojo.PropertyAccessor<Object>
    Direct Known Subclasses:
    ArrayFieldAccessor

    public class FieldAccessor
    extends Object
    implements org.bson.codecs.pojo.PropertyAccessor<Object>
    Developer note.
    This is an internal item. Its function and presence are subject to change without warning. Its use is highly discouraged.
    • Constructor Detail

      • FieldAccessor

        public FieldAccessor​(Field field)
        Creates the accessor for a field
        Parameters:
        field - the field itself
    • Method Detail

      • getField

        protected Field getField()
      • get

        @Nullable
        public Object get​(@Nullable
                          Object instance)
        Specified by:
        get in interface org.bson.codecs.pojo.PropertyAccessor<Object>
      • set

        public void set​(Object instance,
                        Object value)
        Specified by:
        set in interface org.bson.codecs.pojo.PropertyAccessor<Object>