Interface ScoreResolver<T extends Operation>
-
- Type Parameters:
T- theOperationtype
- All Known Implementing Classes:
DefaultScoreResolver,IfScoreResolver,NamedOperationScoreResolver,WhileScoreResolver
public interface ScoreResolver<T extends Operation>AScoreResolveris used to retrieve the score associated with a providedOperation. The implementations ofScoreResolverare used in theScoreOperationChainHandler.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Default Methods Modifier and Type Method Description IntegergetScore(T operation)Should return a (nullable) score for a given operation.default IntegergetScore(T operation, ScoreResolver defaultScoreResolver)Should return a (nullable) score for a given operation.
-
-
-
Method Detail
-
getScore
Integer getScore(T operation)
Should return a (nullable) score for a given operation.- Parameters:
operation- the provided operation for which the score should be resolved- Returns:
- the score for the operation, otherwise null if not found
-
getScore
default Integer getScore(T operation, ScoreResolver defaultScoreResolver)
Should return a (nullable) score for a given operation.- Parameters:
operation- the provided operation for which the score should be resolveddefaultScoreResolver- the default score resolver to look up scores for nested operations- Returns:
- the score for the operation, otherwise null if not found
-
-