Class GeneratorInfo.Builder

java.lang.Object
me.ahoo.cosid.observe.GeneratorInfo.Builder
Enclosing class:
GeneratorInfo

public static final class GeneratorInfo.Builder extends Object
Builds a GeneratorInfo.
  • Method Details

    • store

      public GeneratorInfo.Builder store(String store)
      Sets the store name.
      Parameters:
      store - the store name; default empty, for time-based generators
      Returns:
      this builder
    • detail

      public GeneratorInfo.Builder detail(String key, Object value)
      Sets a detail.
      Parameters:
      key - the detail key
      value - the value
      Returns:
      this builder
    • details

      public GeneratorInfo.Builder details(Map<String,?> details)
      Sets details, keeping those set before under other keys.
      Parameters:
      details - the details
      Returns:
      this builder
    • build

      public GeneratorInfo build()
      Builds the description.
      Returns:
      the description