public class GenericNestedStack<T,P extends GenericNestedStack<T,P>> extends AbstractCollection<T>
| Modifier and Type | Field and Description |
|---|---|
protected P |
parent |
protected int |
size |
protected T |
value |
| Constructor and Description |
|---|
GenericNestedStack(P parent,
T value) |
| Modifier and Type | Method and Description |
|---|---|
List<T> |
asList() |
P |
getParent() |
T |
getValue() |
Iterator<T> |
iterator() |
int |
size() |
add, addAll, clear, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toStringclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitequals, hashCode, parallelStream, removeIf, spliterator, streamprotected P extends GenericNestedStack<T,P> parent
protected T value
protected int size
public P getParent()
public T getValue()
public Iterator<T> iterator()
iterator in interface Iterable<T>iterator in interface Collection<T>iterator in class AbstractCollection<T>public int size()
size in interface Collection<T>size in class AbstractCollection<T>Copyright © 2018. All rights reserved.