Class TargetTypeSelector
- java.lang.Object
-
- org.mapstruct.ap.internal.model.source.selector.TargetTypeSelector
-
public class TargetTypeSelector extends Object
This selector selects a best match based on the result type.Suppose: Sedan -> Car -> Vehicle, MotorCycle -> Vehicle By means of this selector one can pinpoint the exact desired return type (Sedan, Car, MotorCycle, Vehicle)
- Author:
- Sjaak Derksen
-
-
Constructor Summary
Constructors Constructor Description TargetTypeSelector(TypeUtils typeUtils)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description <T extends Method>
List<SelectedMethod<T>>getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context)
-
-
-
Constructor Detail
-
TargetTypeSelector
public TargetTypeSelector(TypeUtils typeUtils)
-
-
Method Detail
-
getMatchingMethods
public <T extends Method> List<SelectedMethod<T>> getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context)
-
-