Interface Enum

    • Method Detail

      • add

        default Enum add​(EnumConstant constant)
        Adds the specified constant to this enum. The constant must not be null.
        Parameters:
        constant - the constant
        Returns:
        a reference to this model
      • getConstants

        List<EnumConstant> getConstants()
        Returns a modifiable list of all the constants in this enum.
        Returns:
        a list of constants
      • of

        static Enum of​(String name)
        Creates a new instance implementing this interface by using the default implementation.
        Parameters:
        name - the name
        Returns:
        the new instance
      • 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
      • static_

        default T static_()
        Adds the static keyword to this model.
        Returns:
        a reference to this model
      • notStatic

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