public class AlternateTypeRules
extends java.lang.Object
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.
|
public static AlternateTypeRule newRule(java.lang.reflect.Type original, java.lang.reflect.Type alternate)
original
- the originalalternate
- the alternatepublic 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