Schnittstelle MultipleCandidatesDetails<T>

Typparameter:
T - the concrete type of the attribute

public interface MultipleCandidatesDetails<T>
Provides context about candidates for an attribute. In particular, this class gives access to the list of candidates on the producer side.
Seit:
3.3
  • Methodenübersicht

    Modifizierer und Typ
    Methode
    Beschreibung
    void
    closestMatch(T candidate)
    Calling this method indicates that the candidate is the closest match.
    A set of candidate values.
    Returns the value of the attribute specified by the consumer.
  • Methodendetails

    • getConsumerValue

      @Nullable T getConsumerValue()
      Returns the value of the attribute specified by the consumer.
      Gibt zurück:
      The value or null if the consumer did not specify a value.
      Seit:
      4.1
    • getCandidateValues

      Set<T> getCandidateValues()
      A set of candidate values.
      Gibt zurück:
      the set of candidates
    • closestMatch

      void closestMatch(T candidate)
      Calling this method indicates that the candidate is the closest match. It is allowed to call this method several times with different values, in which case it indicates that multiple candidates are equally compatible.
      Parameter:
      candidate - The closest match. Must be present in getCandidateValues().