Interface ConstructorModifier<T extends ConstructorModifier<T>>

  • Type Parameters:
    T - the extending type
    All Superinterfaces:
    HasModifiers<T>
    All Known Subinterfaces:
    Constructor

    public interface ConstructorModifier<T extends ConstructorModifier<T>>
    Composed trait of all the modifiers that can be added to a Constructor.
    Since:
    2.0
    Author:
    Emil Forslund
    • Method Summary

      All Methods Instance Methods Default Methods 
      Modifier and Type Method Description
      default T notPrivate()
      Removes the private keyword from this model.
      default T notProtected()
      Removes the protected keyword from this model.
      default T notPublic()
      Removes the public keyword from this model.
      default T private_()
      Adds the private keyword to this model.
      default T protected_()
      Adds the protected keyword to this model.
      default T public_()
      Adds the public keyword to this model.
    • Method Detail

      • public_

        default T public_()
        Adds the public keyword to this model.
        Returns:
        a reference to this model
      • notPublic

        default T notPublic()
        Removes the public keyword from this model.
        Returns:
        a reference to this model
      • protected_

        default T protected_()
        Adds the protected keyword to this model.
        Returns:
        a reference to this model
      • notProtected

        default T notProtected()
        Removes the protected keyword from this model.
        Returns:
        a reference to this model
      • private_

        default T private_()
        Adds the private keyword to this model.
        Returns:
        a reference to this model
      • notPrivate

        default T notPrivate()
        Removes the private keyword from this model.
        Returns:
        a reference to this model