Class XfaForm.Stack2<T>
- Namespace
- iTextSharp.text.pdf
- Assembly
- iTextSharp.LGPLv2.Core.dll
Another stack implementation. The main use is to facilitate the porting to other languages.
public class XfaForm.Stack2<T> : List<T>, IList<T>, ICollection<T>, IList, ICollection, IReadOnlyList<T>, IReadOnlyCollection<T>, IEnumerable<T>, IEnumerable
Type Parameters
T
- Inheritance
-
List<T>XfaForm.Stack2<T>
- Implements
-
IList<T>ICollection<T>IEnumerable<T>
- Inherited Members
- Extension Methods
Constructors
Stack2()
public Stack2()
Methods
Empty()
Tests if this stack is empty.
public bool Empty()
Returns
- bool
true if and only if this stack contains no items; false otherwise
Peek()
Looks at the object at the top of this stack without removing it from the stack.
public T Peek()
Returns
- T
the object at the top of this stack
Pop()
Removes the object at the top of this stack and returns that object as the value of this function.
public T Pop()
Returns
- T
the object at the top of this stack
Push(T)
Pushes an item onto the top of this stack.
public T Push(T item)
Parameters
item
Tthe item to be pushed onto this stack
Returns
- T
the item argument