@ParametersAreNonnullByDefault public class FieldExportPartsBuilder extends Object
FieldExportParts
.Constructor and Description |
---|
FieldExportPartsBuilder() |
Modifier and Type | Method and Description |
---|---|
FieldExportPartsBuilder |
addItem(String id,
String label,
java.util.stream.Stream<String> values)
Used to add a
FieldExportPart with multiple item. |
FieldExportPartsBuilder |
addItem(String id,
String label,
String value)
Used to add a
FieldExportPart with a single item. |
FieldExportParts |
build()
This should be called if you have been using the
addItem(java.lang.String, java.lang.String, java.util.stream.Stream<java.lang.String>) to generate each item. |
static FieldExportParts |
buildSinglePartRepresentation(String id,
String label,
java.util.stream.Stream<String> values)
This generates a representation for the field with a single
FieldExportPart but contains
multiple values for this. |
static FieldExportParts |
buildSinglePartRepresentation(String id,
String label,
String value)
This generates a single
FieldExportPart with a single value. |
public FieldExportPartsBuilder addItem(String id, String label, java.util.stream.Stream<String> values)
FieldExportPart
with multiple item. This can be used if
there is a Field component that can have multiple values.id
- of the item, used for sorting and grouping the items over multiple issueslabel
- to display for the column in this itemvalues
- for the fieldpublic FieldExportPartsBuilder addItem(String id, String label, String value)
FieldExportPart
with a single item. E.g. Project Key from the
ProjectSystemField.id
- of the item, used for sorting and grouping the items over multiple issueslabel
- to display for the column in this itemvalue
- for the fieldpublic FieldExportParts build()
addItem(java.lang.String, java.lang.String, java.util.stream.Stream<java.lang.String>)
to generate each item.public static FieldExportParts buildSinglePartRepresentation(String id, String label, @Nullable String value)
FieldExportPart
with a single value. For example,
a single text field would use this as there is only one value possible.id
- that represents this item, used for sorting and grouping the items over multiple issueslabel
- that would be used for the header of the column.value
- for this issue's field, if null it will be replaced by an empty stringpublic static FieldExportParts buildSinglePartRepresentation(String id, String label, java.util.stream.Stream<String> values)
FieldExportPart
but contains
multiple values for this. An example of the use of this is CommentSystemField
there is only one item but can have many comments.id
- that represents this item, used for sorting and grouping the items over multiple issueslabel
- for each of the columns of the single itemvalues
- for each of the columns of the itemCopyright © 2002-2022 Atlassian. All Rights Reserved.