Class CreateOrUpdateSelector
java.lang.Object
org.mapstruct.ap.internal.model.source.selector.CreateOrUpdateSelector
Selection based on type of method (create - or update method).
Prefers (when present):
- create method candidates (methods not containing
@MappingTarget) when mapping method is a create method - update method candidates (methods containing
@MappingTarget) when mapping method is an update method
- Author:
- Sjaak Derksen
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T extends Method>
List<SelectedMethod<T>> getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context)
-
Constructor Details
-
CreateOrUpdateSelector
public CreateOrUpdateSelector()
-
-
Method Details
-
getMatchingMethods
public <T extends Method> List<SelectedMethod<T>> getMatchingMethods(List<SelectedMethod<T>> methods, SelectionContext context)
-