public static final class SparseRectFArray.SparseRectFArrayBuilder extends Object
SparseRectFArray
. This class is not designed to be thread-safe.Constructor and Description |
---|
SparseRectFArrayBuilder() |
Modifier and Type | Method and Description |
---|---|
SparseRectFArray.SparseRectFArrayBuilder |
append(int key,
float left,
float top,
float right,
float bottom,
int flags)
Puts the rectangle with an integer key.
|
SparseRectFArray |
build() |
boolean |
isEmpty() |
void |
reset() |
public SparseRectFArray.SparseRectFArrayBuilder append(int key, float left, float top, float right, float bottom, int flags)
key
- the key to be associated with the rectangle. It must be greater than all
existing keys that have been previously specified.left
- left of the rectangle.top
- top of the rectangle.right
- right of the rectangle.bottom
- bottom of the rectangle.flags
- an arbitrary integer value to be associated with this rectangle.IllegalArgumentException
- If the index is not greater than all of existing keys.public boolean isEmpty()
public SparseRectFArray build()
SparseRectFArray
using parameters in this SparseRectFArray
.public void reset()