public class AlternateTypeRules
extends java.lang.Object
| Modifier and Type | Field and Description |
|---|---|
static int |
DIRECT_SUBSTITUTION_RULE_ORDER |
static int |
GENERIC_SUBSTITUTION_RULE_ORDER |
| Modifier and Type | Method and Description |
|---|---|
static AlternateTypeRule |
newMapRule(java.lang.Class<?> key,
java.lang.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(java.lang.reflect.Type original,
java.lang.reflect.Type alternate)
Helper method to create a new alternate rule.
|
static AlternateTypeRule |
newRule(java.lang.reflect.Type original,
java.lang.reflect.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(java.lang.reflect.Type original, java.lang.reflect.Type alternate)
original - the originalalternate - the alternatepublic static AlternateTypeRule newRule(java.lang.reflect.Type original, java.lang.reflect.Type alternate, int order)
original - the originalalternate - the alternateorder - the order in which the rule is applied. Orderedpublic static AlternateTypeRule newMapRule(java.lang.Class<?> key, java.lang.Class<?> value)
Map<K,V> that results in an alternate of type
List<Entry<K,V>>.key - the class that represents a keyvalue - the value