Class TokenGenerationParameter.Builder

  • Enclosing class:
    TokenGenerationParameter<T>

    public static class TokenGenerationParameter.Builder
    extends Object
    A builder of a chain of different token generation parameters.
    • Method Detail

      • params

        public <T> TokenGenerationParameter.Builder params​(String key,
                                                           T value)
        Adds a new configuration parameter in the chain build.
        Type Parameters:
        T - the type of the parameter value.
        Parameters:
        key - the parameter key.
        value - the parameter value.
        Returns:
        the builder itself.
      • build

        public TokenGenerationParameter[] build()
        Builds the chain of token generation parameters.
        Returns:
        an array of token generation parameters.