Package ognl
Class EvaluationPool
java.lang.Object
ognl.EvaluationPool
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreate
(SimpleNode node, Object source) Returns an Evaluation that contains the node, source and whether it is a set operation.create
(SimpleNode node, Object source, boolean setOperation) Returns an Evaluation that contains the node, source and whether it is a set operation.int
Returns the number of items this pool has created since it's construction.int
Returns the number of items this pool has recovered from the pool since its construction.int
Returns the number of items this pool has recycled since it's construction.int
getSize()
Returns the number of items in the poolvoid
recycle
(Evaluation value) Recycles an Evaluationvoid
recycleAll
(List value) Recycles a List of Evaluation objectsvoid
recycleAll
(Evaluation value) Recycles an of Evaluation and all of it's siblings and children.
-
Constructor Details
-
EvaluationPool
public EvaluationPool() -
EvaluationPool
public EvaluationPool(int initialSize)
-
-
Method Details
-
create
Returns an Evaluation that contains the node, source and whether it is a set operation. If there are no Evaluation objects in the pool one is created and returned. -
create
Returns an Evaluation that contains the node, source and whether it is a set operation. If there are no Evaluation objects in the pool one is created and returned. -
recycle
Recycles an Evaluation -
recycleAll
Recycles an of Evaluation and all of it's siblings and children. -
recycleAll
Recycles a List of Evaluation objects -
getSize
public int getSize()Returns the number of items in the pool -
getCreatedCount
public int getCreatedCount()Returns the number of items this pool has created since it's construction. -
getRecoveredCount
public int getRecoveredCount()Returns the number of items this pool has recovered from the pool since its construction. -
getRecycledCount
public int getRecycledCount()Returns the number of items this pool has recycled since it's construction.
-