mirror of
https://github.com/mapstruct/mapstruct.git
synced 2025-07-12 00:00:08 +08:00
#341 Doc improvement
This commit is contained in:
parent
e2dbd6ae1d
commit
dfe7e8012b
@ -35,20 +35,18 @@ import org.mapstruct.ap.prism.QualifierPrism;
|
|||||||
|
|
||||||
/**
|
/**
|
||||||
* This selector selects a best match based on qualifiers name.
|
* This selector selects a best match based on qualifiers name.
|
||||||
*
|
|
||||||
* <p>
|
* <p>
|
||||||
* A method is said to be marked with a qualifier annotation if the class in which it resides is annotated with a
|
* A method is said to be marked with a qualifier annotation if the class in which it resides is annotated with a
|
||||||
* qualifier annotation or if the method itself is annotated with a qualifier annotation or both.
|
* qualifier annotation or if the method itself is annotated with a qualifier annotation or both.
|
||||||
* </p>
|
|
||||||
*
|
|
||||||
* <p>
|
* <p>
|
||||||
* Rules:
|
* Rules:
|
||||||
* <ol>
|
* <ol>
|
||||||
* <li> 1. If a method is marked with a qualifier annotation, it does not contribute to a match otherwise and
|
* <li>If a method is marked with a qualifier annotation, it does not contribute to a match otherwise and is hence
|
||||||
* is hence removed from the list of potential mapping methods</li>
|
* removed from the list of potential mapping methods</li>
|
||||||
* <li> 2. If multiple qualifiers (qualifedBy) are specified, all should match to make a match.</li>
|
* <li>If multiple qualifiers (qualifedBy) are specified, all should match to make a match.</li>
|
||||||
* </ol>
|
* </ol>
|
||||||
* </p>
|
* </p>
|
||||||
|
*
|
||||||
* @author Sjaak Derksen
|
* @author Sjaak Derksen
|
||||||
*/
|
*/
|
||||||
public class QualifierSelector implements MethodSelector {
|
public class QualifierSelector implements MethodSelector {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user