Class FieldAccessor

  • All Implemented Interfaces:
    Direct Known Subclasses:

    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
        field - the field itself
    • Method Detail

      • getField

        protected Field getField()
      • get

        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>