|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--structure.AbstractStructure
|
+--structure.AbstractLinear
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. |
java.lang.Object |
remove(java.lang.Object 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 |
clone, equals, finalize, 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 Linearpublic java.lang.Object remove(java.lang.Object o)
remove in interface Structureo - value matching the value to be removed
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||