|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||
java.lang.Objectstructure.AbstractStructure<ELTTYPE>
structure.AbstractLinear<ELTTYPE>
public abstract class AbstractLinear<ELTTYPE>
An abstract implemtation of linear data structures. Linear structures have completely determined add and remove methods. Linear structures are often used to store the the state of a recursively solved problem and stacks and queues are classic examples of such structures.
Stack,
Queue| Constructor Summary | |
|---|---|
AbstractLinear()
|
|
| Method Summary | |
|---|---|
boolean |
empty()
Determine if there are elements within the linear. |
ELTTYPE |
remove(ELTTYPE o)
Removes value from the linear structure. |
| Methods inherited from class structure.AbstractStructure |
|---|
contains, elements, hashCode, isEmpty, values |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface structure.Linear |
|---|
add, get, remove, size |
| Methods inherited from interface structure.Structure |
|---|
clear, contains, elements, isEmpty, iterator, values |
| Constructor Detail |
|---|
public AbstractLinear()
| Method Detail |
|---|
public boolean empty()
empty in interface Linear<ELTTYPE>public ELTTYPE remove(ELTTYPE o)
remove in interface Structure<ELTTYPE>value - value matching the value to be removed
|
||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||