public class Alternates extends Object
| Constructor and Description |
|---|
Alternates() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public static AlternateTypeRule newRule(Type original, Type alternate)
original - the originalalternate - the alternatepublic 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 © May 2012-2014 The Mango Factory. All Rights Reserved.