com.mangofactory.swagger.models.alternates
Class Alternates

java.lang.Object
  extended by com.mangofactory.swagger.models.alternates.Alternates

public class Alternates
extends java.lang.Object


Constructor Summary
Alternates()
           
 
Method Summary
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.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Alternates

public Alternates()
Method Detail

newRule

public static AlternateTypeRule newRule(java.lang.reflect.Type original,
                                        java.lang.reflect.Type alternate)
Helper method to create a new alternate rule.

Parameters:
original - the original
alternate - the alternate
Returns:
the alternate type rule

newMapRule

public 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>>.

Parameters:
key - the class that represents a key
value - the value
Returns:
the alternate type rule