Class ImmutableItemForest
Object
ImmutableItemForest
- All Implemented Interfaces:
ItemForest,RowRetriever
-
Field Summary
FieldsFields inherited from interface RowRetriever
IGNORE_MISSING_ROWS -
Method Summary
Modifier and TypeMethodDescriptionstatic ImmutableItemForestcopy(ItemForest copyFrom) static ImmutableItemForestcopySubtree(ItemForest copyFrom, long rootId) getRow(long rowId, ItemAccessMode access) RetrievesStructureRowwith additional information about how the calling code is going to use methodStructureRow.getItem(java.lang.Class<I>).static ImmutableItemForestof(Forest forest, Map<Long, StructureRow> rows) static ImmutableItemForestof(StructureRow row) static ImmutableItemForestrearrangeItemForest(ItemForest source, Forest newForest) Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface ItemForest
collectItemIdsMethods inherited from interface RowRetriever
collectIssueIds, collectIssueIds, getRow, reduceOverRows, scanAllExistingRows, scanAllExistingRows, scanAllExistingRows, scanAllRows, scanAllRows, scanAllRows, scanAllRows, scanRows, scanRows, scanRows, scanRows
-
Field Details
-
EMPTY
-
-
Method Details
-
of
-
of
-
copy
-
copySubtree
-
rearrangeItemForest
@NotNull public static ImmutableItemForest rearrangeItemForest(@NotNull ItemForest source, @NotNull Forest newForest) throws MissingRowException Returns anItemForestbased onnewForest, with rows taken fromsource.newForestcannot contain any new rows, it must be a permutation or a sub-forest ofsource.getForest().- Throws:
MissingRowException- if some of the rows in the newForest are not found
-
getForest
- Specified by:
getForestin interfaceItemForest
-
getRow
@NotNull public StructureRow getRow(long rowId, @NotNull ItemAccessMode access) throws MissingRowException Description copied from interface:RowRetrieverRetrieves
StructureRowwith additional information about how the calling code is going to use methodStructureRow.getItem(java.lang.Class<I>). The implementation may be optimized according to theaccessparameter.If row's item is invisible or does not exist,
StructureRowis returned anyway, butStructureRow.getItem(java.lang.Class<I>)returnnull.- Specified by:
getRowin interfaceRowRetriever- Parameters:
rowId- row IDaccess- defines how item object is going to be accessed- Returns:
- row instance
- Throws:
MissingRowException- if the specified row ID does not exist- See Also:
-