public class AlternateTypeRule
extends java.lang.Object
implements org.springframework.core.Ordered
Modifier and Type | Field and Description |
---|---|
protected com.fasterxml.classmate.ResolvedType |
alternate |
protected int |
order |
protected com.fasterxml.classmate.ResolvedType |
original |
Constructor and Description |
---|
AlternateTypeRule(com.fasterxml.classmate.ResolvedType original,
com.fasterxml.classmate.ResolvedType alternate)
Instantiates a new Alternate type rule.
|
AlternateTypeRule(com.fasterxml.classmate.ResolvedType original,
com.fasterxml.classmate.ResolvedType alternate,
int order)
Instantiates a new Alternate type rule.
|
Modifier and Type | Method and Description |
---|---|
com.fasterxml.classmate.ResolvedType |
alternateFor(com.fasterxml.classmate.ResolvedType type)
Provides alternate for supplier type.
|
boolean |
appliesTo(com.fasterxml.classmate.ResolvedType type)
Check if an alternate applies to type.
|
int |
getOrder() |
protected final com.fasterxml.classmate.ResolvedType original
protected final com.fasterxml.classmate.ResolvedType alternate
protected final int order
public AlternateTypeRule(com.fasterxml.classmate.ResolvedType original, com.fasterxml.classmate.ResolvedType alternate)
original
- the original typealternate
- the alternate typepublic AlternateTypeRule(com.fasterxml.classmate.ResolvedType original, com.fasterxml.classmate.ResolvedType alternate, int order)
original
- the original typealternate
- the alternate typeorder
- the order Ordered
in which the rules are appliedpublic com.fasterxml.classmate.ResolvedType alternateFor(com.fasterxml.classmate.ResolvedType type)
type
- the typepublic boolean appliesTo(com.fasterxml.classmate.ResolvedType type)
type
- the sourcepublic int getOrder()
getOrder
in interface org.springframework.core.Ordered