BRUtil - Making Java a Kinder, Gentler, Place to be.

brutil
Class AbstractListing

java.lang.Object
  |
  +--brutil.AbstractListing
All Implemented Interfaces:
Collection
Direct Known Subclasses:
AbstractMultiSet, AbstractQueue, AbstractStack

public abstract class AbstractListing
extends java.lang.Object
implements Collection


Field Summary
protected  List list
           
 
Constructor Summary
AbstractListing()
           
 
Method Summary
 void clear()
          Clears out the contents of the listing.
 boolean isEmpty()
          Returns true if the List/Collection contains no elements, false otherwise
protected abstract  List listFactory()
          Override this in concrete implementation.
 int size()
          Returns the size of the given List/Collection.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

list

protected List list
Constructor Detail

AbstractListing

public AbstractListing()
Method Detail

listFactory

protected abstract List listFactory()
Override this in concrete implementation.

size

public int size()
Returns the size of the given List/Collection.
Specified by:
size in interface Collection

isEmpty

public boolean isEmpty()
Returns true if the List/Collection contains no elements, false otherwise
Specified by:
isEmpty in interface Collection

clear

public void clear()
Clears out the contents of the listing.
Specified by:
clear in interface Collection


BRUtil - Making Java a Kinder, Gentler, Place to be.