Interface ScoreResolver<T extends 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 resolved
        defaultScoreResolver - the default score resolver to look up scores for nested operations
        Returns:
        the score for the operation, otherwise null if not found