structure
Class AbstractLinear
java.lang.Object
structure.AbstractStructure
structure.AbstractLinear
- All Implemented Interfaces:
- Linear, Structure
- Direct Known Subclasses:
- AbstractQueue, AbstractStack
public abstract class AbstractLinear
- extends AbstractStructure
- implements Linear
Method Summary |
boolean |
empty()
Determine if there are elements within the linear. |
Object |
remove(Object o)
Removes value from the linear structure. |
AbstractLinear
public AbstractLinear()
empty
public boolean empty()
- Determine if there are elements within the linear.
- Specified by:
empty
in interface Linear
- Returns:
- true if the linear structure is empty; false otherwise
remove
public Object remove(Object o)
- Removes value from the linear structure.
Not implemented (by default) for linear classes.
- Specified by:
remove
in interface Structure
- Parameters:
value
- value matching the value to be removed
- Returns:
- returns the value that was replaced, or null if none.