类 AlternateTypeRules

java.lang.Object
springfox.documentation.schema.AlternateTypeRules

public class AlternateTypeRules extends Object
  • 字段详细资料

    • DIRECT_SUBSTITUTION_RULE_ORDER

      public static final int DIRECT_SUBSTITUTION_RULE_ORDER
      另请参阅:
    • GENERIC_SUBSTITUTION_RULE_ORDER

      public static final int GENERIC_SUBSTITUTION_RULE_ORDER
      另请参阅:
  • 方法详细资料

    • newRule

      public static AlternateTypeRule newRule(Type original, Type alternate)
      Helper method to create a new alternate rule.
      参数:
      original - the original
      alternate - the alternate
      返回:
      the alternate type rule
    • newRule

      public static AlternateTypeRule newRule(Type original, Type alternate, int order)
      Helper method to create a new alternate rule.
      参数:
      original - the original
      alternate - the alternate
      order - the order in which the rule is applied. Ordered
      返回:
      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>>.
      参数:
      key - the class that represents a key
      value - the value
      返回:
      the alternate type rule