Interface Builder<B extends Builder<B,T>,T>

Type Parameters:
B - The type of builder being used.
T - The type of object being built.
All Known Subinterfaces:
BukkitSyntaxInfos.Event.Builder<B,E>, DefaultSyntaxInfos.Expression.Builder<B,E,R>, DefaultSyntaxInfos.Structure.Builder<B,E>, SyntaxInfo.Builder<B,E>

@Experimental public interface Builder<B extends Builder<B,T>,T>
An interface providing common methods to be implemented for any builder.
  • Nested Class Summary

    Nested Classes
    Modifier and Type
    Interface
    Description
    static interface 
    Represents an object that can be converted back into a builder.
  • Method Summary

    Modifier and Type
    Method
    Description
    void
    applyTo(B builder)
    Applies the values of this builder onto builder.
     
  • Method Details

    • build

      @Contract("-> new") T build()
      Returns:
      An object of T built from the values specified by this builder.
    • applyTo

      void applyTo(B builder)
      Applies the values of this builder onto builder.
      Parameters:
      builder - The builder to apply values onto.