EntityPool class
ObjectPool for entities.
- Inheritance
-
- Object
- ObjectPool<
Entity, String> - EntityPool
Constructors
- EntityPool(EntityManager entityManager)
Properties
- entityManager ↔ EntityManager
-
The manager that handles all the entities.
getter/setter pair
- 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(
[String? data]) → Entity -
Acquire a new object.
inherited
-
builder(
) → Entity -
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(
Entity 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