public class AlternateTypeRules extends Object
| 限定符和类型 | 字段和说明 |
|---|---|
static int |
DIRECT_SUBSTITUTION_RULE_ORDER |
static int |
GENERIC_SUBSTITUTION_RULE_ORDER |
| 限定符和类型 | 方法和说明 |
|---|---|
static AlternateTypeRule |
newMapRule(Class<?> key,
Class<?> value)
Helper method to create a new alternate for
Map<K,V> that results in an alternate of type
List<Entry<K,V>>. |
static AlternateTypeRule |
newRule(Type original,
Type alternate)
Helper method to create a new alternate rule.
|
static AlternateTypeRule |
newRule(Type original,
Type alternate,
int order)
Helper method to create a new alternate rule.
|
public static final int DIRECT_SUBSTITUTION_RULE_ORDER
public static final int GENERIC_SUBSTITUTION_RULE_ORDER
public static AlternateTypeRule newRule(Type original, Type alternate)
original - the originalalternate - the alternatepublic static AlternateTypeRule newRule(Type original, Type alternate, int order)
original - the originalalternate - the alternateorder - the order in which the rule is applied. Orderedpublic static AlternateTypeRule newMapRule(Class<?> key, Class<?> value)
Map<K,V> that results in an alternate of type
List<Entry<K,V>>.key - the class that represents a keyvalue - the valueCopyright © 2023. All rights reserved.