Package zombie.util
Class PooledObject
java.lang.Object
zombie.util.PooledObject
- All Implemented Interfaces:
IPooledObject
- Direct Known Subclasses:
AnimationPlayer
,AnimationTrack
,BoneTransform
,Comparators.Params1.CallbackStackItem
,Comparators.Params2.CallbackStackItem
,Consumers.Params1.CallbackStackItem
,Consumers.Params2.CallbackStackItem
,Consumers.Params3.CallbackStackItem
,Consumers.Params4.CallbackStackItem
,Consumers.Params5.CallbackStackItem
,GameProfiler.ProfileArea
,GameProfileRecording.Span
,Invokers.Params1.CallbackStackItem
,Invokers.Params2.CallbackStackItem
,Invokers.Params3.CallbackStackItem
,Invokers.Params4.CallbackStackItem
,LiveAnimNode
,ModelInstanceDebugRenderData
,ModelSlotDebugRenderData
,ModelTransformSampler
,PooledArrayObject
,PooledFloatArrayObject
,Predicates.Params1.CallbackStackItem
,Predicates.Params2.CallbackStackItem
,Predicates.Params3.CallbackStackItem
,ReturnValueContainer
,ReturnValueContainerPrimitives.RVBoolean
,ReturnValueContainerPrimitives.RVFloat
,ReturnValueContainerPrimitives.RVInt
,ShaderStackEntry
,Stacks.GenericStack
,WorldMapMarker
,WorldMapSymbolsV1.WorldMapTextSymbolV1
,WorldMapSymbolsV1.WorldMapTextureSymbolV1
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
-
Method Summary
Modifier and TypeMethodDescriptionfinal Pool<IPooledObject>
getPool()
final boolean
isFree()
final void
release()
final void
setFree
(boolean isFree) final void
setPool
(Pool<IPooledObject> pool) Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface zombie.util.IPooledObject
onReleased
-
Constructor Details
-
PooledObject
public PooledObject()
-
-
Method Details
-
getPool
- Specified by:
getPool
in interfaceIPooledObject
-
setPool
- Specified by:
setPool
in interfaceIPooledObject
-
release
public final void release()- Specified by:
release
in interfaceIPooledObject
-
isFree
public final boolean isFree()- Specified by:
isFree
in interfaceIPooledObject
-
setFree
public final void setFree(boolean isFree) - Specified by:
setFree
in interfaceIPooledObject
-