Interface PropertyAccessor<T>

  • Type Parameters:
    T - the type of the property


    public interface PropertyAccessor<T>
    Provides access for getting and setting property data.
    Since:
    3.5
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      <S> T get​(S instance)
      Gets the value for a given PropertyModel instance.
      <S> void set​(S instance, T value)
      Sets a value on the given PropertyModel
    • Method Detail

      • get

        <S> T get​(S instance)
        Gets the value for a given PropertyModel instance.
        Type Parameters:
        S - the class instance type
        Parameters:
        instance - the class instance to get the property value from
        Returns:
        the value of the property.
      • set

        <S> void set​(S instance,
                     T value)
        Sets a value on the given PropertyModel
        Type Parameters:
        S - the class instance type
        Parameters:
        instance - the instance to set the property value to
        value - the new value for the property