Class FieldAccessor

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

    public class FieldAccessor
    extends Object
    implements org.bson.codecs.pojo.PropertyAccessor
    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

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

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