|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.jibx.binding.util.SparseStack
public class SparseStack
Stack for values that depend on the level of nesting, where only some of the levels change the current value.
| Constructor Summary | |
|---|---|
SparseStack()
Constructor with no initial value. |
|
SparseStack(Object current)
Constructor with initial value. |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SparseStack(Object current)
current - initial valuepublic SparseStack()
| Method Detail |
|---|
public Object getCurrent()
public void setCurrent(Object obj)
obj - set the current objectpublic void enter()
public Object exit()
null if
same item still active
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||