Package org.apache.thrift
Class ShortStack
- java.lang.Object
-
- org.apache.thrift.ShortStack
-
public class ShortStack extends java.lang.Object
ShortStack is a short-specific Stack implementation written for the express purpose of very fast operations on TCompactProtocol's field id stack. This implementation performs at least 10x faster than java.util.Stack.
-
-
Constructor Summary
Constructors Constructor Description ShortStack(int initialCapacity)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
clear()
short
peek()
short
pop()
void
push(short pushed)
java.lang.String
toString()
-