AddPool
(
primitive
, pool
)
|
Adds a pool to the collection, associated with the given primitive.
Signature
void AddPool(K primitive, P pool) Parameters primitive: KÂ
The primitive object used as a key for the pool.
pool: PÂ
The pool to add to the collection.
Returns void |
ContainsPool
(
primitive
)
|
Checks if a pool exists in the collection for the given primitive.
Signature
bool ContainsPool(K primitive) Parameters primitive: KÂ
The primitive object used as a key for the pool.
Returns boolÂ
True if a pool exists for the given primitive, false otherwise.
|
GetPool
(
primitive
)
|
Retrieves the pool associated with the given primitive from the collection.
Signature
P GetPool(K primitive) Parameters primitive: KÂ
The primitive object used as a key for the pool.
Returns PÂ
The pool associated with the given primitive, or null if no such pool exists.
|