Interface ValueChoiceCalculator

All Known Implementing Classes:
ValueChoiceCalculatorBase
Functional Interface:
This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.

@FunctionalInterface public interface ValueChoiceCalculator
A calculator that derives a set of values to be chosen from an existing list of available choices.
  • Method Summary

    Modifier and Type
    Method
    Description
    getValueChoice(Object object, Collection<?> originalChoice)
    Derives a list of value choices from a given list of available values and a given object.
  • Method Details

    • getValueChoice

      Collection<?> getValueChoice(Object object, Collection<?> originalChoice)
      Derives a list of value choices from a given list of available values and a given object. The method usually applies a filter on the given values but it is free to yield an arbitrary list of values.
      Parameters:
      object - The object for which the choice of values shall be calculated.
      originalChoice - The set of available values to choose from.
      Returns:
      A new set of values to choose from.