Interface Extendable<T>

    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      T extend​(T parent)
      If called on a child, gets the extension with the given parent.
      T getExtension()
      This returns an object that represents the value only for the most "local" level.
      T newExtension()
      Called on a base object, gets a new extension with a default config object for the child.
    • Method Detail

      • newExtension

        T newExtension()
        Called on a base object, gets a new extension with a default config object for the child.
      • extend

        T extend​(T parent)
        If called on a child, gets the extension with the given parent.
      • getExtension

        T getExtension()
        This returns an object that represents the value only for the most "local" level. That is, this is the difference between the inherited base and the current extension. Complex objects should ensure that trait is true for all aspects of the returned value.