Class TransactionBuilder

java.lang.Object
net.tnemc.plugincore.core.component.builder.TransactionBuilder
All Implemented Interfaces:
ComponentBuilder

public class TransactionBuilder extends Object implements ComponentBuilder
TransactionBuilder
Since:
1.0.0.2
Author:
creatorfromhell
  • Constructor Details

  • Method Details

    • of

      public static TransactionBuilder of(String type)
      Returns a new TransactionBuilder instance for the specified type.
      Parameters:
      type - the type of transaction
      Returns:
      a new TransactionBuilder instance
    • with

      Sets the provided TransactionParameters for the current TransactionBuilder instance.
      Parameters:
      parameters - the TransactionParameters to set for the builder
      Returns:
      the current TransactionBuilder instance with the provided parameters set
    • with

      public TransactionBuilder with(Transaction transaction)
      Sets the provided transaction for the current TransactionBuilder instance.
      Parameters:
      transaction - the transaction to set for the builder
      Returns:
      the current TransactionBuilder instance with the provided transaction set
    • identifier

      public String identifier()
      Returns the identifier of the component.
      Specified by:
      identifier in interface ComponentBuilder
      Returns:
      the identifier of the component as a string.
    • builder

      Returns a component builder instance that can be used to build components.
      Specified by:
      builder in interface ComponentBuilder
      Returns:
      a ComponentBuilder instance.