@PublicApi public class ConsistentRowValues extends Object
ConsistentRowValues carries the values loaded in a consistent way, that is, when all the requested data retained their values
during the loading process.
Note that these objects also contain the specific version of Forest that was used to calculate the values. This may be important
when the consistent values are applied - it's better to use the forest retrieved here from getForest(), rather than request it separately,
because it might change and the values contained in this class may not match the updated forest.
| Modifier and Type | Field and Description |
|---|---|
static ConsistentRowValues |
EMPTY |
| Constructor and Description |
|---|
ConsistentRowValues(Forest forest,
LongList requestedRows,
Collection<? extends AttributeSpec<?>> requestedAttributes,
RowValues values,
DataVersion forestVersion,
DataVersion itemsVersion) |
public static final ConsistentRowValues EMPTY
public ConsistentRowValues(@NotNull
Forest forest,
@NotNull
LongList requestedRows,
@NotNull
Collection<? extends AttributeSpec<?>> requestedAttributes,
@NotNull
RowValues values,
@NotNull
DataVersion forestVersion,
@NotNull
DataVersion itemsVersion)
@NotNull public RowValues getValues()
@NotNull public Forest getForest()
@NotNull public LongList getRequestedRows()
StructureAttributeService.getConsistentAttributeValues(com.almworks.jira.structure.api.forest.ForestSpec, boolean, java.util.function.Function<com.almworks.jira.structure.api.forest.item.ItemForest, com.almworks.integers.LongList>, java.util.Collection<? extends com.almworks.jira.structure.api.attribute.AttributeSpec<?>>). Note that the included values
may contain values for other rows, but they are not guaranteed to be consistent.@NotNull public Collection<? extends AttributeSpec<?>> getRequestedAttributes()
StructureAttributeService.getConsistentAttributeValues(com.almworks.jira.structure.api.forest.ForestSpec, boolean, java.util.function.Function<com.almworks.jira.structure.api.forest.item.ItemForest, com.almworks.integers.LongList>, java.util.Collection<? extends com.almworks.jira.structure.api.attribute.AttributeSpec<?>>). Note that the included
values may contain values for other attributes, but they are not guaranteed to be consistent.@NotNull public DataVersion getForestVersion()
@NotNull public DataVersion getItemsVersion()
ItemTrackerCopyright © 2021 ALM Works. All Rights Reserved.