org.optaplanner.core.impl.score.stream.bavet

## Class BavetConstraintFactory<Solution_>

- java.lang.Object
- - org.optaplanner.core.impl.score.stream.bavet.BavetConstraintFactory<Solution_>

- All Implemented Interfaces:
    ConstraintFactory, InnerConstraintFactory<Solution_>

      public final class BavetConstraintFactory<Solution_>
      extends Object
      implements InnerConstraintFactory<Solution_>

- - ### Constructor Summary

    Constructors
    Constructor and Description
    `BavetConstraintFactory(SolutionDescriptor<Solution_> solutionDescriptor)`

  - ### Method Summary

    All Methods Instance Methods Concrete Methods
    Modifier and Type | Method and Description
    --- | ---
    `ConstraintSessionFactory<Solution_>` | `buildSessionFactory(Constraint[] constraints)` This method is thread-safe.
    `<A> BavetAbstractUniConstraintStream<Solution_,A>` | `fromUnfiltered(Class<A> fromClass)` Like `ConstraintFactory.from(Class)`, but without any filtering of uninitialized `planning entities`.
    `String` | `getDefaultConstraintPackage()` This is `ConstraintConfiguration.constraintPackage()` if available, otherwise the package of the `PlanningSolution` class.
    `SolutionDescriptor<Solution_>` | `getSolutionDescriptor()`

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

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

    - ### Methods inherited from interface org.optaplanner.core.impl.score.stream.InnerConstraintFactory

      `from, fromUniquePair`

    - ### Methods inherited from interface org.optaplanner.core.api.score.stream.ConstraintFactory

      `fromUniquePair, fromUniquePair, fromUniquePair, fromUniquePair, fromUniquePair`

- - ### Constructor Detail

    - #### BavetConstraintFactory

          public BavetConstraintFactory(SolutionDescriptor<Solution_> solutionDescriptor)

  - ### Method Detail

    - #### fromUnfiltered

          public <A> BavetAbstractUniConstraintStream<Solution_,A> fromUnfiltered(Class<A> fromClass)

      Description copied from interface: `ConstraintFactory`
      Like `ConstraintFactory.from(Class)`, but without any filtering of uninitialized `planning entities`.
      Specified by:
        `fromUnfiltered` in interface `ConstraintFactory`
      Type Parameters:
        `A` - the type of the matched problem fact or `planning entity`
      Parameters:
        `fromClass` - never null
      Returns:
        never null

    - #### buildSessionFactory

          public ConstraintSessionFactory<Solution_> buildSessionFactory(Constraint[] constraints)

      Description copied from interface: `InnerConstraintFactory`
      This method is thread-safe.
      Specified by:
        `buildSessionFactory` in interface `InnerConstraintFactory<Solution_>`
      Parameters:
        `constraints` - never null
      Returns:
        never null

    - #### getSolutionDescriptor

          public SolutionDescriptor<Solution_> getSolutionDescriptor()

      Specified by:
        `getSolutionDescriptor` in interface `InnerConstraintFactory<Solution_>`
      Returns:
        never null

    - #### getDefaultConstraintPackage

          public String getDefaultConstraintPackage()

      Description copied from interface: `ConstraintFactory`
      This is `ConstraintConfiguration.constraintPackage()` if available, otherwise the package of the `PlanningSolution` class.
      Specified by:
        `getDefaultConstraintPackage` in interface `ConstraintFactory`
      Returns:
        never null

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