com.rubecula.util
Class AuditableVector

java.lang.Object
  extended by java.util.AbstractCollection<E>
      extended by java.util.AbstractList<E>
          extended by java.util.Vector
              extended by com.rubecula.util.AuditableVector
All Implemented Interfaces:
Auditable, Identifiable, Serializable, Cloneable, Iterable, Collection, List, RandomAccess
Direct Known Subclasses:
Darwinian_Abstract, Genome_Abstract, Genotype_Abstract

public class AuditableVector
extends Vector
implements Auditable

This class is an auditable extension of Vector.

Version:
$Revision: 1.4 $
Author:
Robin Hillyard
See Also:
Serialized Form

Field Summary
 
Fields inherited from class java.util.Vector
capacityIncrement, elementCount, elementData
 
Fields inherited from class java.util.AbstractList
modCount
 
Constructor Summary
AuditableVector()
           
AuditableVector(String identifier)
           
 
Method Summary
 String audit()
          Method to return a detailed (unlabeled) string from an object for debugging purposes.
 void audit(PrintWriter out, String label)
          Method to output detailed string from an object for debugging purposes.
 String audit(String label)
          Method to return a detailed (labeled) string from an object for debugging purposes.
 String getIdentifier()
          Method to get the specific identifier for an object.
 
Methods inherited from class java.util.Vector
add, add, addAll, addAll, addElement, capacity, clear, clone, contains, containsAll, copyInto, elementAt, elements, ensureCapacity, equals, firstElement, get, hashCode, indexOf, indexOf, insertElementAt, isEmpty, lastElement, lastIndexOf, lastIndexOf, remove, remove, removeAll, removeAllElements, removeElement, removeElementAt, removeRange, retainAll, set, setElementAt, setSize, size, subList, toArray, toArray, toString, trimToSize
 
Methods inherited from class java.util.AbstractList
iterator, listIterator, listIterator
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.util.List
iterator, listIterator, listIterator
 

Constructor Detail

AuditableVector

public AuditableVector()

AuditableVector

public AuditableVector(String identifier)
Method Detail

audit

public String audit()
Method to return a detailed (unlabeled) string from an object for debugging purposes. This string does not enumerate the elements of this object - rather it creates a summary.

Specified by:
audit in interface Auditable
Returns:
the detailed string.

audit

public void audit(PrintWriter out,
                  String label)
Method to output detailed string from an object for debugging purposes.

Specified by:
audit in interface Auditable
Parameters:
out - the output stream.
label - the label to attach to the output (may be null).

audit

public String audit(String label)
Method to return a detailed (labeled) string from an object for debugging purposes. This string does not enumerate the elements of this object - rather it creates a summary.

Specified by:
audit in interface Auditable
Parameters:
label - the label by which to identify this audit.
Returns:
the detailed string.

getIdentifier

public String getIdentifier()
Description copied from interface: Identifiable
Method to get the specific identifier for an object.

Specified by:
getIdentifier in interface Identifiable
Returns:
the identifier.