Class PooledObject
java.lang.Object
zombie.util.PooledObject
- All Implemented Interfaces:
IPooledObject
- Direct Known Subclasses:
AnimationPlayer, AnimationTrack, AnimationVariableWhileAliveFlagCounter, AnimLayer, AutoCloseablePool, AutoRepiperDebugLogStream.RepiperPacket, BallisticsController, BallisticsTarget, BoneTransform, ByteBufferPooledObject, ClimbThroughWindowPositioningParams, Comparators.Params1.CallbackStackItem, Comparators.Params2.CallbackStackItem, Consumers.Params1.CallbackStackItem, Consumers.Params2.CallbackStackItem, Consumers.Params3.CallbackStackItem, Consumers.Params4.CallbackStackItem, Consumers.Params5.CallbackStackItem, DoublePoint, EditStreetV1, FMODAmbientWallLevelData, FMODAmbientWallLevelData.FMODAmbientWall, GameProfiler.ProfileArea, GameProfileRecording.Span, IntMap, Invokers.Params0.Boolean.CallbackStackItem, Invokers.Params1.CallbackStackItem, Invokers.Params2.CallbackStackItem, Invokers.Params3.CallbackStackItem, Invokers.Params4.CallbackStackItem, Invokers.Params5.CallbackStackItem, LiveAnimationTrackEntry, LiveAnimNode, LiveAnimNode.WhileAliveFlag, LuaEventManager.QueuedEvent, ModelInstanceDebugRenderData, ModelSlotDebugRenderData, ModelTransformSampler, PooledArrayObject, PooledFloatArrayObject, Predicates.Params1.CallbackStackItem, Predicates.Params2.CallbackStackItem, Predicates.Params3.CallbackStackItem, RagdollController, ReturnValueContainer, ReturnValueContainerPrimitives.RVBoolean, ReturnValueContainerPrimitives.RVFloat, ReturnValueContainerPrimitives.RVInt, ShaderStackEntry, Stacks.GenericStack, StartAnimTrackParameters, SubLayerSlot, WorldMapMarker, WorldMapSymbolsV1.WorldMapTextSymbolV1, WorldMapSymbolsV1.WorldMapTextureSymbolV1, WorldMapSymbolsV2.WorldMapTextSymbolV2, WorldMapSymbolsV2.WorldMapTextureSymbolV2
The base implementation of IPooledObject
Extend from this class if you wish to take advantage of the Pool's functionality.
If extending from this class is not possible, implement IPooledObject instead.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal Pool.PoolReferencefinal booleanisFree()final voidrelease()final voidsetFree(boolean isFree) final voidsetPool(Pool.PoolReference pool) Methods inherited from class Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface IPooledObject
onReleased
-
Constructor Details
-
PooledObject
public PooledObject()
-
-
Method Details
-
getPoolReference
- Specified by:
getPoolReferencein interfaceIPooledObject
-
setPool
- Specified by:
setPoolin interfaceIPooledObject
-
release
public final void release()- Specified by:
releasein interfaceIPooledObject
-
isFree
public final boolean isFree()- Specified by:
isFreein interfaceIPooledObject
-
setFree
public final void setFree(boolean isFree) - Specified by:
setFreein interfaceIPooledObject
-