Package org.onosproject.ui.lion
Class LionBundle.Builder
- java.lang.Object
-
- org.onosproject.ui.lion.LionBundle.Builder
-
- Enclosing class:
- LionBundle
public static final class LionBundle.Builder extends Object
Builder of Lion Bundles.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description LionBundle.Builder
addItem(String key, String value)
Adds an item to the bundle.LionBundle
build()
Builds the lion bundle from this builder instance.String
id()
Returns the bundle ID.
-
-
-
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 keyvalue
- the item value- Returns:
- self, for chaining
-
build
public LionBundle build()
Builds the lion bundle from this builder instance.- Returns:
- the lion bundle
-
-