Interface Property<O,​P>

  • Type Parameters:
    O - Object type
    P - Property type

    public interface Property<O,​P>
    Small interface to define a property with both read and write access.
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      P get​(O obj)
      Get the value of the property.
      void set​(O obj, P value)
      Set the value of the property for the object.
    • Method Detail

      • get

        P get​(O obj)
        Get the value of the property.
        Parameters:
        obj - the object, from that the property is derived
        Returns:
        the value of the property for the object obj
      • set

        void set​(O obj,
                 P value)
        Set the value of the property for the object.
        Parameters:
        obj - the object for that the property should be set
        value - the value the property is set to