/ fm / liveswitch / Stack
Class: Stack<T>
fm.liveswitch.Stack
Type parameters
Name |
---|
T |
Table of contents
Constructors
Properties
Methods
Constructors
constructor
+ new Stack<T>(depth?
: number): Stack<T>
Type parameters:
Name |
---|
T |
Parameters:
Name | Type |
---|---|
depth? |
number |
Returns: Stack<T>
Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:7
Properties
_depth
• Private
_depth: number
Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:7
_list
• Private
_list: T[]
Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:6
Methods
getCount
▸ getCount(): number
Returns: number
Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:31
getTypeString
▸ getTypeString(): string
Returns: string
Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:3
peek
▸ peek(): T
Returns: T
Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:25
pop
▸ pop(): T
Returns: T
Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:22
push
▸ push(o
: T): void
Parameters:
Name | Type |
---|---|
o |
T |
Returns: void
Defined in: Generated/TypeScript/fm.liveswitch/Stack.ts:16