ComponentPool<T extends Component> class
An ObjectPool for a type of Component.
- Inheritance
-
- Object
- ObjectPool<
T, dynamic> - ComponentPool
Constructors
-
ComponentPool.new(ComponentBuilder<
T> componentBuilder)
Properties
-
componentBuilder
→ ComponentBuilder<
T> -
final
- hashCode → int
-
The hash code for this object.
no setterinherited
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalFree → int
-
The amount of objects that are free to use in the pool.
no setterinherited
- totalSize → int
-
The total amount of the objects in the pool.
no setterinherited
- totalUsed → int
-
The amount of objects that are in use in the pool.
no setterinherited
Methods
-
acquire(
[dynamic data]) → T -
Acquire a new object.
inherited
-
builder(
) → T -
Builder for creating a new instance of a PoolObject.
override
-
expand(
int count) → void -
Expand the existing pool by the given count.
inherited
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
release(
T item) → void -
Release a object back into the pool.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited