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