|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.eclipse.hyades.collection.correlation.Stack
org.eclipse.hyades.collection.correlation.CorrelatorStack
This is a stack for managing the instances of ICorrelatorData for a specific key,
which implements java.util.Comparator. Contextual data can be pushed onto and popped off
the stack, and an operation counter also exists to keep track of the number of local Stack.push(Object)
operations.
| Field Summary |
|---|
| Fields inherited from class org.eclipse.hyades.collection.correlation.Stack |
|---|
increment, privateStorage, stack, top |
| Constructor Summary | |
|---|---|
CorrelatorStack(java.util.Comparator key,
int size,
int increment)
Creates an empty stack of size with an increment for holding instances of
ICorrelatorData associated with key. |
|
| Method Summary | |
|---|---|
java.util.Comparator |
getKey()
Returns the key assocaited with this stack. |
long |
getOperationCounter()
Returns the current value of the operation counter. |
long |
incrementOperationCounter()
Increments the current value of the operation counter by 1, and returns its new value. |
| Methods inherited from class org.eclipse.hyades.collection.correlation.Stack |
|---|
peek, peek, pop, push |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public CorrelatorStack(java.util.Comparator key,
int size,
int increment)
size with an increment for holding instances of
ICorrelatorData associated with key.
key - any user-defined unique identifier for a this stacksize - the initial size of the stackincrement - the size by which the stack grows if its current capacity is insufficient| Method Detail |
public java.util.Comparator getKey()
public long getOperationCounter()
public long incrementOperationCounter()
|
TPTP 4.2.0 Platform Project Public API Specification |
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||