@PublicApi @Immutable public final class ImmutableItemForest extends Object implements ItemForest
Modifier and Type | Field and Description |
---|---|
static ItemForest |
EMPTY |
IGNORE_MISSING_ROWS
Modifier and Type | Method and Description |
---|---|
static ImmutableItemForest |
copy(ItemForest copyFrom) |
static ImmutableItemForest |
copySubtree(ItemForest copyFrom,
long rootId) |
Forest |
getForest() |
StructureRow |
getRow(long rowId,
ItemAccessMode access)
Retrieves
StructureRow with additional information about how the calling code is going to use
method StructureRow.getItem(java.lang.Class<I>) . |
static ImmutableItemForest |
of(Forest forest,
Map<Long,StructureRow> rows) |
static ImmutableItemForest |
of(StructureRow row) |
static ImmutableItemForest |
rearrangeItemForest(ItemForest source,
Forest newForest)
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
collectItemIds
collectIssueIds, collectIssueIds, getRow, reduceOverRows, scanAllExistingRows, scanAllExistingRows, scanAllExistingRows, scanAllRows, scanAllRows, scanAllRows, scanAllRows, scanRows, scanRows, scanRows, scanRows
public static final ItemForest EMPTY
public static ImmutableItemForest of(@NotNull Forest forest, @NotNull Map<Long,StructureRow> rows)
public static ImmutableItemForest of(@NotNull StructureRow row)
@NotNull public static ImmutableItemForest copy(@NotNull ItemForest copyFrom)
@NotNull public static ImmutableItemForest copySubtree(@NotNull ItemForest copyFrom, long rootId)
@NotNull public static ImmutableItemForest rearrangeItemForest(@NotNull ItemForest source, @NotNull Forest newForest) throws MissingRowException
ItemForest
based on newForest
, with rows taken
from source
. newForest
cannot contain any new rows, it must
be a permutation or a sub-forest of source.getForest()
.MissingRowException
- if some of the rows in the newForest are not found@NotNull public Forest getForest()
getForest
in interface ItemForest
@NotNull public StructureRow getRow(long rowId, @NotNull ItemAccessMode access) throws MissingRowException
RowRetriever
Retrieves StructureRow
with additional information about how the calling code is going to use
method StructureRow.getItem(java.lang.Class<I>)
. The implementation may be optimized according to the access
parameter.
If row's item is invisible or does not exist, StructureRow
is returned anyway, but StructureRow.getItem(java.lang.Class<I>)
return null
.
getRow
in interface RowRetriever
rowId
- row IDaccess
- defines how item object is going to be accessedMissingRowException
- if the specified row ID does not existItemAccessMode
Copyright © 2024 Tempo Software. All Rights Reserved.