public class SparseStack extends Object
| Constructor and Description |
|---|
SparseStack()
Constructor with no initial value.
|
SparseStack(Object current)
Constructor with initial value.
|
| Modifier and Type | Method and Description |
|---|---|
void |
enter()
Enter a level of nesting.
|
Object |
exit()
Exit a level of nesting with changed item returned.
|
Object |
getCurrent()
Get current object.
|
void |
setCurrent(Object obj)
Set current object.
|
public SparseStack(Object current)
current - initial valuepublic SparseStack()
public Object getCurrent()
public void setCurrent(Object obj)
obj - set the current objectpublic void enter()
public Object exit()
null if
same item still activeCopyright © 2005–2016 jibx.org. All rights reserved.