org.optaplanner.core.impl.score.stream.drools.common

## Class DroolsAccumulateContext<ResultContainer_>

- java.lang.Object
- - org.optaplanner.core.impl.score.stream.drools.common.DroolsAccumulateContext<ResultContainer_>

- Type Parameters:
    `ResultContainer_` - The same type from `UniConstraintCollector` and its Bi, Tri, ... alternatives.
  All Implemented Interfaces:
    Serializable

      public final class DroolsAccumulateContext<ResultContainer_>
      extends Object
      implements Serializable

  Each context is uniquely identified by its `System.identityHashCode(Object)`. This is necessary so that the Drools accumulate function can properly undo in `DroolsUniAccumulateFunctionBridge` and its Bi, Tri, ... alternatives.
  See Also:
    Serialized Form

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `DroolsAccumulateContext(ResultContainer_ container)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ResultContainer_` | `getContainer()`
    `Map<Object,Runnable>` | `getUndoMap()`

    - ### Methods inherited from class java.lang.Object

      `clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- - ### Constructor Detail

    - #### DroolsAccumulateContext

          public DroolsAccumulateContext(ResultContainer_ container)

  - ### Method Detail

    - #### getContainer

          public ResultContainer_ getContainer()

    - #### getUndoMap

          public Map<Object,Runnable> getUndoMap()

Copyright © 2006–2020 JBoss by Red Hat. All rights reserved.