java.lang.Object | |
↳ | com.pdftron.pdf.utils.PointFPool |
PointF Pool Pattern to avoid unnecessary memory allocation.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | length |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
PointFPool() |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
void |
clear()
Clears the pool
| ||||||||||
static PointFPool | getInstance() | ||||||||||
PointF | obtain() | ||||||||||
PointF | obtain(float x, float y) | ||||||||||
void |
recycle(List<PointF> points)
Recycles points to the pool
| ||||||||||
void |
recycle(int count)
Recycles a specified number of points to the pool
| ||||||||||
void |
recycle(PointF point)
Recycles a PointF to the pool
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Clears the pool
Recycles points to the pool
points | A list of points to be recycled |
---|
Recycles a specified number of points to the pool
count | The number of points to be recycled |
---|
Recycles a PointF to the pool
point | The PointF |
---|