Class MethodAccessor

  • All Implemented Interfaces:
    org.bson.codecs.pojo.PropertyAccessor<Object>

    public class MethodAccessor
    extends Object
    implements org.bson.codecs.pojo.PropertyAccessor<Object>
    • Constructor Detail

      • MethodAccessor

        public MethodAccessor​(Method getter,
                              Method setter)
    • Method Detail

      • get

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

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