com.mangofactory.swagger.models.alternates
Class Alternates
java.lang.Object
com.mangofactory.swagger.models.alternates.Alternates
public class Alternates
- extends Object
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Alternates
public Alternates()
newRule
public static AlternateTypeRule newRule(Type original,
Type alternate)
- Helper method to create a new alternate rule.
- Parameters:
original - the originalalternate - the alternate
- Returns:
- the alternate type rule
newMapRule
public 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>>.
- Parameters:
key - the class that represents a keyvalue - the value
- Returns:
- the alternate type rule
Copyright © May 2012-2014 The Mango Factory. All Rights Reserved.