com.partnersoft.data
Class AbstractDynamicComparableArray<T extends java.lang.Comparable>

java.lang.Object
  extended by com.partnersoft.data.DynamicArray
      extended by com.partnersoft.data.AbstractDynamicArray<T>
          extended by com.partnersoft.data.AbstractDynamicComparableArray<T>
All Implemented Interfaces:
java.lang.Iterable<T>

public abstract class AbstractDynamicComparableArray<T extends java.lang.Comparable>
extends AbstractDynamicArray<T>

A managed, dynamically allocated array of Comparables. Includes a sort feature.

Copyright 2001-2007 Partner Software, Inc.

Version:
$Id$
Author:
Paul Reavis

Field Summary
 
Fields inherited from class com.partnersoft.data.AbstractDynamicArray
array
 
Fields inherited from class com.partnersoft.data.DynamicArray
arrayObject, capacity, end, fastGrowthFactor, fastGrowthLimit, slowGrowthAmount, start
 
Constructor Summary
AbstractDynamicComparableArray()
          Creates an empty DynamicObjectArray, for objects of the given type, with size and capacity of 0.
AbstractDynamicComparableArray(int capacity)
          Creates a DynamicObjectArray of the given type and given capacity.
AbstractDynamicComparableArray(T... contents)
          Creates a DynamicObjectArray of the given type and initial contents.
 
Method Summary
 void sort()
          Quicksorts the contents.
 
Methods inherited from class com.partnersoft.data.AbstractDynamicArray
add, addMultiple, append, append, contentsToString, fitToSize, iterator, newArray, newArrayImp, toFixedArray, toList
 
Methods inherited from class com.partnersoft.data.DynamicArray
append, clear, copy, copy, copyExactly, copyFrom, copyTo, insert, isEmpty, makeRoomFor, makeRoomFor, pack, remove, size, subsection, tidy, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

AbstractDynamicComparableArray

public AbstractDynamicComparableArray()
Creates an empty DynamicObjectArray, for objects of the given type, with size and capacity of 0.


AbstractDynamicComparableArray

public AbstractDynamicComparableArray(int capacity)
Creates a DynamicObjectArray of the given type and given capacity.


AbstractDynamicComparableArray

public AbstractDynamicComparableArray(T... contents)
Creates a DynamicObjectArray of the given type and initial contents.

Method Detail

sort

public void sort()
Quicksorts the contents.