Class GetterSetterAccessor

    • Constructor Detail

      • GetterSetterAccessor

        public GetterSetterAccessor​(Object instance,
                                    Method getter,
                                    Method setter)
        Constructs a new ClassFieldAccessor.
        Parameters:
        instance - the plain Java object
        getter - the getter method
        setter - the setter method
    • Method Detail

      • setValue

        public void setValue​(Object value)
        The strategy to set a value.
        Specified by:
        setValue in interface PropertyAccessor
        Parameters:
        value - The value to be set.