public static class

AttributeMap.Builder

extends Object
java.lang.Object
   ↳ com.atlassian.stash.content.AttributeMap.Builder

Class Overview

Builder class for AttributeMap

Summary

Public Constructors
AttributeMap.Builder()
Public Methods
@Nonnull AttributeMap.Builder add(AttributeMap other)
Adds all attName-values attribute pairs in the other AttributeMap the Builder
@Nonnull AttributeMap.Builder add(String attName, String... values)
Adds all attName-values attribute pairs to the Builder
@Nonnull AttributeMap.Builder add(String attName, Iterable<String> values)
Adds all attName-values attribute pairs to the Builder
@Nonnull AttributeMap build()
Builds the AttributeMap
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public AttributeMap.Builder ()

Public Methods

@Nonnull public AttributeMap.Builder add (AttributeMap other)

Adds all attName-values attribute pairs in the other AttributeMap the Builder

Parameters
other the other AttributeMap
Returns
  • the Builder

@Nonnull public AttributeMap.Builder add (String attName, String... values)

Adds all attName-values attribute pairs to the Builder

Parameters
attName the attribute name
values the attribute values
Returns
  • the Builder

@Nonnull public AttributeMap.Builder add (String attName, Iterable<String> values)

Adds all attName-values attribute pairs to the Builder

Parameters
attName the attribute name
values the attribute values
Returns
  • the Builder

@Nonnull public AttributeMap build ()

Builds the AttributeMap

Returns
  • the AtributeMap