@PublicApi @Immutable public final class ImmutableItemForest extends Object implements ItemForest
Modifier and Type | Field and Description |
---|---|
static ItemForest |
EMPTY |
Modifier and Type | Method and Description |
---|---|
static ImmutableItemForest |
copy(ItemForest copyFrom) |
static ImmutableItemForest |
copySubtree(ItemForest copyFrom,
long rootId) |
Forest |
getForest() |
StructureRow |
getRow(long rowId) |
static ImmutableItemForest |
of(Forest forest,
Map<Long,StructureRow> rows) |
static ImmutableItemForest |
of(StructureRow row) |
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 Forest getForest()
getForest
in interface ItemForest
@NotNull public StructureRow getRow(long rowId) throws MissingRowException
getRow
in interface ItemForest
MissingRowException
Copyright © 2017 ALM Works. All Rights Reserved.