Interface PrototypeConstant

All Superinterfaces:
Prototype.Api
All Known Implementing Classes:
PrototypeConstant.BuilderBase.PrototypeConstantImpl

public interface PrototypeConstant extends Prototype.Api
Custom constant definition. This constant will be code generated on the prototype interface.
See Also:
  • Method Details

    • builder

      static PrototypeConstant.Builder builder()
      Create a new fluent API builder to customize configuration.
      Returns:
      a new builder
    • builder

      static PrototypeConstant.Builder builder(PrototypeConstant instance)
      Create a new fluent API builder from an existing instance.
      Parameters:
      instance - an existing instance used as a base for the builder
      Returns:
      a builder based on an instance
    • name

      String name()
      Name of the constant.
      Returns:
      field name
    • type

      TypeName type()
      Type of the constant.
      Returns:
      field type
    • javadoc

      Javadoc javadoc()
      Javadoc for the constant.
      Returns:
      javadoc
    • content

      Consumer<ContentBuilder<?>> content()
      Consumer of the content to generate the constant.
      Returns:
      content builder consumer to generate the constant value