public interface AssetTreeStats
Modifier and Type | Method and Description |
---|---|
void |
accumulate(long count,
long sizeInBytes)
Accumulates (folds) the provided
count and sizeInBytes
into this mutable container. |
AssetTreeStats |
combine(@NotNull AssetTreeStats other)
Combines the partial result of the provided
other with this
and returns the result. |
long |
count()
Returns the number of entities held (e.g.
|
static AssetTreeStats |
create()
Creates and returns a new AssetTreeStats.
|
long |
sizeInBytes()
Returns the size in bytes used to store entities.
|
void accumulate(long count, long sizeInBytes)
count
and sizeInBytes
into this mutable container.count
- to foldsizeInBytes
- to foldAssetTreeStats combine(@NotNull @NotNull AssetTreeStats other)
other
with this
and returns the result.
The combiner function may fold state from the argument into this and return this, or may return a new result container.
other
- to combineother
and thislong count()
long sizeInBytes()
static AssetTreeStats create()
Copyright © 2021. All rights reserved.