docs.gradle.org

    • Method Detail

      • create

        void create(Action<? super T> action)

        Declares a new set element, configured by the given action.

        Specified by:
        create in interface ManagedSet<T>
        Parameters:
        action - the object configuration
      • beforeEach

        void beforeEach(Action<? super T> configAction)

        Apply the given action to each set element just after it is created.

        The configuration action is equivalent in terms of lifecycle to Defaults rule methods.

        Specified by:
        beforeEach in interface ManagedSet<T>
        Parameters:
        configAction - the object configuration
      • afterEach

        void afterEach(Action<? super T> configAction)

        Apply the given action to each set element just before it is considered to be realised.

        The configuration action is equivalent in terms of lifecycle to Finalize rule methods.

        Specified by:
        afterEach in interface ManagedSet<T>
        Parameters:
        configAction - the object configuration

Read the original on docs.gradle.org ↗