Class FinalParameters<T extends HasMethods<T>>

  • Type Parameters:
    T - The extending type
    All Implemented Interfaces:
    Consumer<T>

    public final class FinalParameters<T extends HasMethods<T>>
    extends Object
    implements Consumer<T>
    This control makes sure all method parameters in the specified model is set to final.
    Author:
    Emil Forslund
    • Constructor Detail

      • FinalParameters

        public FinalParameters()
    • Method Detail

      • accept

        public void accept​(T model)
        Sets all method parameters in the specified model to final.
        Specified by:
        accept in interface Consumer<T extends HasMethods<T>>
        Parameters:
        model - the model to operate on