| Constructor and Description |
|---|
StackListPOJO() |
StackListPOJO(Collection<Stack> collection)
Creates a stack list POJO from a collection of stack objects.
|
StackListPOJO(Stack stack)
Creates a stack list POJO from a stack object.
|
StackListPOJO(Stack[] array)
Creates a stack loist POJO from an array of stack objects.
|
| Modifier and Type | Method and Description |
|---|---|
StackPOJO |
get(int index)
Returns the stack at the indicated index.
|
List<StackPOJO> |
getStacks()
Gets the list of stack POJOs.
|
Iterator<StackPOJO> |
iterator()
Returns an iterator for the list of stacks.
|
void |
setStacks(List<StackPOJO> stacks)
Sets the list of stack POJOs.
|
int |
size()
Returns the size of the stack list.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitforEach, spliteratorpublic StackListPOJO()
public StackListPOJO(Stack stack)
Stack - the stack objectpublic StackListPOJO(Collection<Stack> collection)
Collection - collection of stack objectspublic StackListPOJO(Stack[] array)
StackInteger[] - array of stack objectspublic void setStacks(List<StackPOJO> stacks)
List - the new list of stackspublic List<StackPOJO> getStacks()
public StackPOJO get(int index)
int - the index into the stack listpublic int size()
Copyright © 2017. All rights reserved.