org.optaplanner.core.impl.heuristic.selector.entity.mimic

## Class ManualEntityMimicRecorder

- java.lang.Object
- - org.optaplanner.core.impl.heuristic.selector.entity.mimic.ManualEntityMimicRecorder

- All Implemented Interfaces:
    EntityMimicRecorder

      public class ManualEntityMimicRecorder
      extends Object
      implements EntityMimicRecorder

- - ### Field Summary

    Fields
    Modifier and Type | Field and Description
    --- | ---
    `protected Object` | `recordedEntity`
    `protected List<MimicReplayingEntitySelector>` | `replayingEntitySelectorList`
    `protected EntitySelector` | `sourceEntitySelector`

  - ### Constructor Summary

    Constructors
    Constructor and Description
    `ManualEntityMimicRecorder(EntitySelector sourceEntitySelector)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `void` | `addMimicReplayingEntitySelector(MimicReplayingEntitySelector replayingEntitySelector)`
    `Iterator<Object>` | `endingIterator()`
    `EntityDescriptor` | `getEntityDescriptor()`
    `Object` | `getRecordedEntity()`
    `long` | `getSize()`
    `boolean` | `isCountable()`
    `boolean` | `isNeverEnding()`
    `void` | `setRecordedEntity(Object recordedEntity)`
    `String` | `toString()`

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

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

- - ### Field Detail

    - #### sourceEntitySelector

          protected final EntitySelector sourceEntitySelector

    - #### replayingEntitySelectorList

          protected final List<MimicReplayingEntitySelector> replayingEntitySelectorList

    - #### recordedEntity

          protected Object recordedEntity

  - ### Constructor Detail

    - #### ManualEntityMimicRecorder

          public ManualEntityMimicRecorder(EntitySelector sourceEntitySelector)

  - ### Method Detail

    - #### addMimicReplayingEntitySelector

          public void addMimicReplayingEntitySelector(MimicReplayingEntitySelector replayingEntitySelector)

      Specified by:
        `addMimicReplayingEntitySelector` in interface `EntityMimicRecorder`
      Parameters:
        `replayingEntitySelector` - never null

    - #### getRecordedEntity

          public Object getRecordedEntity()

    - #### setRecordedEntity

          public void setRecordedEntity(Object recordedEntity)

    - #### getEntityDescriptor

          public EntityDescriptor getEntityDescriptor()

      Specified by:
        `getEntityDescriptor` in interface `EntityMimicRecorder`
      Returns:
        As defined by `EntitySelector.getEntityDescriptor()`
      See Also:
        `EntitySelector.getEntityDescriptor()`

    - #### isCountable

          public boolean isCountable()

      Specified by:
        `isCountable` in interface `EntityMimicRecorder`
      Returns:
        As defined by `Selector.isCountable()`
      See Also:
        `Selector.isCountable()`

    - #### isNeverEnding

          public boolean isNeverEnding()

      Specified by:
        `isNeverEnding` in interface `EntityMimicRecorder`
      Returns:
        As defined by `Selector.isNeverEnding()`
      See Also:
        `Selector.isNeverEnding()`

    - #### getSize

          public long getSize()

      Specified by:
        `getSize` in interface `EntityMimicRecorder`
      Returns:
        As defined by `IterableSelector.getSize()`
      See Also:
        `IterableSelector.getSize()`

    - #### endingIterator

          public Iterator<Object> endingIterator()

      Specified by:
        `endingIterator` in interface `EntityMimicRecorder`
      Returns:
        As defined by `EntitySelector.endingIterator()`
      See Also:
        `EntitySelector.endingIterator()`

    - #### toString

          public String toString()

      Overrides:
        `toString` in class `Object`

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