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)
BitmapResultFactory
wrapDimensionValue
in interface BitmapResultFactory<ImmutableBitmap>
public ImmutableBitmap wrapAllFalse(ImmutableBitmap allFalseBitmap)
BitmapResultFactory
BitmapFactory.makeEmptyImmutableBitmap()
call.wrapAllFalse
in interface BitmapResultFactory<ImmutableBitmap>
public ImmutableBitmap wrapAllTrue(ImmutableBitmap allTrueBitmap)
BitmapResultFactory
BitmapFactory.complement(ImmutableBitmap, int)
called with
BitmapFactory.makeEmptyImmutableBitmap()
as argument.wrapAllTrue
in interface BitmapResultFactory<ImmutableBitmap>
public boolean isEmpty(ImmutableBitmap bitmapResult)
BitmapResultFactory
ImmutableBitmap.isEmpty()
.isEmpty
in interface BitmapResultFactory<ImmutableBitmap>
public ImmutableBitmap intersection(Iterable<ImmutableBitmap> bitmapResults)
BitmapResultFactory
BitmapFactory.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)
BitmapResultFactory
BitmapFactory.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)
BitmapResultFactory
unionDimensionValueBitmaps
in interface BitmapResultFactory<ImmutableBitmap>
public ImmutableBitmap complement(ImmutableBitmap bitmapResult, int numRows)
BitmapResultFactory
BitmapFactory.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)
BitmapResultFactory
toImmutableBitmap
in interface BitmapResultFactory<ImmutableBitmap>
Copyright © 2011–2018. All rights reserved.