com.sun.xml.bind.v2.util
public final class CollisionCheckStack<E> extends AbstractList<E>
Object equality is their identity equality.
This class implements List for accessing items in the stack, but List methods that alter the stack is not supported.
Constructor Summary | |
---|---|
CollisionCheckStack() |
Method Summary | |
---|---|
boolean | findDuplicate(E o) |
E | get(int index) |
String | getCycleString()
String that represents the cycle. |
boolean | getLatestPushResult() |
boolean | getUseIdentity() |
E | peek()
Returns the top of the stack. |
E | pop()
Pops an object from the stack |
boolean | push(E o)
Pushes a new object to the stack.
|
void | pushNocheck(E o)
Pushes a new object to the stack without making it participate
with the collision check. |
void | reset()
Clears all the contents in the stack. |
void | setUseIdentity(boolean useIdentity)
Set to false to use Object#equals(Object) to detect cycles.
|
int | size() |
Returns: true if this object has already been pushed