Class LionBundle.Builder

  • Enclosing class:
    LionBundle

    public static final class LionBundle.Builder
    extends Object
    Builder of Lion Bundles.
    • Constructor Detail

      • Builder

        public Builder​(String id)
        Creates a builder of Lion Bundles.
        Parameters:
        id - the bundle's identifier
    • Method Detail

      • id

        public String id()
        Returns the bundle ID.
        Returns:
        the bundle ID
      • addItem

        public LionBundle.Builder addItem​(String key,
                                          String value)
        Adds an item to the bundle.
        Parameters:
        key - the item key
        value - the item value
        Returns:
        self, for chaining
      • build

        public LionBundle build()
        Builds the lion bundle from this builder instance.
        Returns:
        the lion bundle