public final class DefaultBitmapResultFactory extends Object implements BitmapResultFactory<ImmutableBitmap>
| Constructor and Description |
|---|
DefaultBitmapResultFactory(BitmapFactory factory) |
| Modifier and Type | Method and Description |
|---|---|
ImmutableBitmap |
complement(ImmutableBitmap bitmapResult,
int numRows)
Delegates to
BitmapFactory.complement(ImmutableBitmap, int) on the wrapped bitmap, and returns a bitmap
result wrapping the resulting complement ImmutableBitmap. |
ImmutableBitmap |
intersection(Iterable<ImmutableBitmap> bitmapResults)
Delegates to
BitmapFactory.intersection(Iterable) on the wrapped bitmaps, and returns a bitmap result
wrapping the resulting intersection ImmutableBitmap. |
boolean |
isEmpty(ImmutableBitmap bitmapResult)
Checks that the wrapped bitmap is empty, see
ImmutableBitmap.isEmpty(). |
ImmutableBitmap |
toImmutableBitmap(ImmutableBitmap bitmapResult)
Unwraps bitmapResult back to ImmutableBitmap.
|
ImmutableBitmap |
union(Iterable<ImmutableBitmap> bitmapResults)
Delegates to
BitmapFactory.union(Iterable) on the wrapped bitmaps, and returns a bitmap result wrapping
the resulting union ImmutableBitmap. |
ImmutableBitmap |
unionDimensionValueBitmaps(Iterable<ImmutableBitmap> dimensionValueBitmaps)
Equivalent of intersection(Iterables.transform(dimensionValueBitmaps, factory::wrapDimensionValue)), but doesn't
create a lot of bitmap result objects.
|
ImmutableBitmap |
wrapAllFalse(ImmutableBitmap allFalseBitmap)
Wraps a bitmap which is a result of
BitmapFactory.makeEmptyImmutableBitmap() call. |
ImmutableBitmap |
wrapAllTrue(ImmutableBitmap allTrueBitmap)
Wraps a bitmap which is a result of
BitmapFactory.complement(ImmutableBitmap, int) called with
BitmapFactory.makeEmptyImmutableBitmap() as argument. |
ImmutableBitmap |
wrapDimensionValue(ImmutableBitmap bitmap)
Wraps a bitmap which designates rows in a segment with some specific dimension value.
|
public DefaultBitmapResultFactory(BitmapFactory factory)
public ImmutableBitmap wrapDimensionValue(ImmutableBitmap bitmap)
BitmapResultFactorywrapDimensionValue in interface BitmapResultFactory<ImmutableBitmap>public ImmutableBitmap wrapAllFalse(ImmutableBitmap allFalseBitmap)
BitmapResultFactoryBitmapFactory.makeEmptyImmutableBitmap() call.wrapAllFalse in interface BitmapResultFactory<ImmutableBitmap>public ImmutableBitmap wrapAllTrue(ImmutableBitmap allTrueBitmap)
BitmapResultFactoryBitmapFactory.complement(ImmutableBitmap, int) called with
BitmapFactory.makeEmptyImmutableBitmap() as argument.wrapAllTrue in interface BitmapResultFactory<ImmutableBitmap>public boolean isEmpty(ImmutableBitmap bitmapResult)
BitmapResultFactoryImmutableBitmap.isEmpty().isEmpty in interface BitmapResultFactory<ImmutableBitmap>public ImmutableBitmap intersection(Iterable<ImmutableBitmap> bitmapResults)
BitmapResultFactoryBitmapFactory.intersection(Iterable) on the wrapped bitmaps, and returns a bitmap result
wrapping the resulting intersection ImmutableBitmap.intersection in interface BitmapResultFactory<ImmutableBitmap>public ImmutableBitmap union(Iterable<ImmutableBitmap> bitmapResults)
BitmapResultFactoryBitmapFactory.union(Iterable) on the wrapped bitmaps, and returns a bitmap result wrapping
the resulting union ImmutableBitmap.union in interface BitmapResultFactory<ImmutableBitmap>public ImmutableBitmap unionDimensionValueBitmaps(Iterable<ImmutableBitmap> dimensionValueBitmaps)
BitmapResultFactoryunionDimensionValueBitmaps in interface BitmapResultFactory<ImmutableBitmap>public ImmutableBitmap complement(ImmutableBitmap bitmapResult, int numRows)
BitmapResultFactoryBitmapFactory.complement(ImmutableBitmap, int) on the wrapped bitmap, and returns a bitmap
result wrapping the resulting complement ImmutableBitmap.complement in interface BitmapResultFactory<ImmutableBitmap>public ImmutableBitmap toImmutableBitmap(ImmutableBitmap bitmapResult)
BitmapResultFactorytoImmutableBitmap in interface BitmapResultFactory<ImmutableBitmap>Copyright © 2011–2023 The Apache Software Foundation. All rights reserved.