Class LionBundle.Builder

  • Enclosing class:
    LionBundle

    public static final class LionBundle.Builder
    extends java.lang.Object
    Builder of Lion Bundles.
    • Constructor Summary

      Constructors 
      Constructor Description
      Builder​(java.lang.String id)
      Creates a builder of Lion Bundles.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      LionBundle.Builder addItem​(java.lang.String key, java.lang.String value)
      Adds an item to the bundle.
      LionBundle build()
      Builds the lion bundle from this builder instance.
      java.lang.String id()
      Returns the bundle ID.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • Builder

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

      • id

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

        public LionBundle.Builder addItem​(java.lang.String key,
                                          java.lang.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