|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object structure.AbstractStructure structure.AbstractList
public abstract class AbstractList
Constructor Summary | |
---|---|
AbstractList()
Default constructor for AbstractLists |
Method Summary | |
---|---|
void |
add(java.lang.Object value)
Add an object to tail of list. |
void |
addFirst(java.lang.Object value)
Add a value to head of list. |
void |
addLast(java.lang.Object value)
Add a value to tail of list. |
boolean |
contains(java.lang.Object value)
Check to see if a value is in list. |
java.lang.Object |
get()
Retrieves value from tail of list. |
java.lang.Object |
getFirst()
Fetch first element of list. |
java.lang.Object |
getLast()
Fetch last element of list. |
boolean |
isEmpty()
Determine if list is empty. |
java.lang.Object |
remove()
Removes value from tail of list. |
java.lang.Object |
removeFirst()
Remove a value from first element of list. |
java.lang.Object |
removeLast()
Remove last value from list. |
Methods inherited from class structure.AbstractStructure |
---|
elements, hashCode, values |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface structure.List |
---|
add, clear, get, indexOf, iterator, lastIndexOf, remove, remove, set, size |
Methods inherited from interface structure.Structure |
---|
elements, values |
Constructor Detail |
---|
public AbstractList()
Method Detail |
---|
public boolean isEmpty()
isEmpty
in interface List
isEmpty
in interface Structure
isEmpty
in class AbstractStructure
public void addFirst(java.lang.Object value)
addFirst
in interface List
value
- The value to be added to head of list.public void addLast(java.lang.Object value)
addLast
in interface List
value
- The value to be added to tail of list.public java.lang.Object getFirst()
getFirst
in interface List
public java.lang.Object getLast()
getLast
in interface List
public java.lang.Object removeFirst()
removeFirst
in interface List
public java.lang.Object removeLast()
removeLast
in interface List
public void add(java.lang.Object value)
add
in interface List
add
in interface Structure
value
- The value to be added to tail of list.addLast(java.lang.Object)
public java.lang.Object remove()
remove
in interface List
public java.lang.Object get()
get
in interface List
public boolean contains(java.lang.Object value)
contains
in interface List
contains
in interface Structure
contains
in class AbstractStructure
value
- value sought.
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |