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

## Interface UniConstraintConsequence

- All Superinterfaces:
    `ConstraintConsequence<UniConstraintGraphNode>`

      public interface UniConstraintConsequence
      extends ConstraintConsequence<UniConstraintGraphNode>

- - ### Method Summary

    All Methods Instance Methods Abstract Methods
    Modifier and Type | Method | Description
    --- | --- | ---
    `ConsequenceMatchWeightType` | `getMatchWeightType()` | The numeric type of the match weight that score will be impacted with.

    - ### Methods inherited from interface org.optaplanner.core.impl.score.stream.drools.common.consequences.ConstraintConsequence

      `getTerminalNode`

- - ### Method Detail

    - #### getMatchWeightType

          ConsequenceMatchWeightType getMatchWeightType()

      The numeric type of the match weight that score will be impacted with. See Javadoc for extending interfaces for more.
      Specified by:
        `getMatchWeightType` in interface `ConstraintConsequence<UniConstraintGraphNode>`
      Returns:
        Never null. When this method returns `ConsequenceMatchWeightType.INTEGER`, implementations of this interface are guaranteed to implement `ToIntFunction`. When this method returns `ConsequenceMatchWeightType.LONG`, implementations of this interface are guaranteed to implement `ToLongFunction`. When this method returns `ConsequenceMatchWeightType.BIG_DECIMAL`, implementations of this interface are guaranteed to implement `Function` to `BigDecimal`.