Options
All
  • Public
  • Public/Protected
  • All
Menu

Class HttpPathParam<T, K, V>

路径参数解析

Type parameters

  • T: object

  • K

  • V

Hierarchy

Index

Constructors

constructor

  • Parameters

    • value: T

    Returns HttpPathParam

Properties

Readonly size

size: number

Methods

clear

  • clear(): void
  • Returns void

delete

  • delete(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

forEach

  • forEach(callbackfn: (value: V, key: K, map: Map<K, V>) => void, thisArg?: any): void
  • Parameters

    • callbackfn: (value: V, key: K, map: Map<K, V>) => void
        • (value: V, key: K, map: Map<K, V>): void
        • Parameters

          • value: V
          • key: K
          • map: Map<K, V>

          Returns void

    • Optional thisArg: any

    Returns void

get

  • get<K>(key: K): T[K]
  • Type parameters

    • K: keyof T

    Parameters

    • key: K

    Returns T[K]

has

  • has(key: K): boolean
  • Parameters

    • key: K

    Returns boolean

set

  • set<K, V>(key: K, value: V): this
  • Type parameters

    • K: keyof T

    • V: T[K]

    Parameters

    • key: K
    • value: V

    Returns this

stringify

  • stringify(space?: number): string
  • Parameters

    • Default value space: number = 0

    Returns string

toJSON

  • toJSON(space?: number): string
  • 转为json

    Parameters

    • Default value space: number = 0

    Returns string

toJSONObject

Static create

  • 创建

    Type parameters

    • T: object

    Parameters

    • value: T

    Returns HttpPathParam<T>

Static toJSON

  • toJSON<T>(httpPathParam: HttpPathParam<T>, space?: number): string
  • 转换为json

    Type parameters

    • T: object

    Parameters

    • httpPathParam: HttpPathParam<T>
    • Default value space: number = 0

    Returns string

Static toJSONObject

  • toJSONObject<T, O>(objectedMap: O): JSONObject<T>

Generated using TypeDoc