Package com.sosnoski.util

Base classes and general utility classes.

See:
          Description

Class Summary
ArrayRangeIterator Iterator class for values contained in an array range.
CharBuffer Growable char array with added StringBuffer-like functionality.
GrowableBase Base class for various types of collections based on type-specific growable arrays.
ObjectHashBase Base class for type-specific hash map and hash set classes using object keys.
PrimitiveHashBase Base class for type-specific hash map and hash set classes using keys of primitive types.
SparseArrayIterator Iterator class for sparse values in an array.
WrappedArrayIterator Iterator class for values contained in a possibly wrapped array range.
 

Package com.sosnoski.util Description

Base classes and general utility classes. These include the abstract base classes for the several varieties of type-specific collection classes.

GrowableBase provides the basic implementation of a collection which uses a growable array, with call out methods (abstract methods used by the base class but defined by the subclass) for handling the particular needs of each such type of collection. The array, queue, and stack collection classes are all derived from this class.

PrimitiveHashBase and ObjectHashBase provide the basic implementation of hash-based collection. These also use call out methods for handling the particular needs of each such type of collection. The hash map and hash set collection classes are derived from this pair of classes.

ArrayRangeIterator, WrappedArrayIterator and SparseArrayIterator provide java.util.Iterator implementations for array-based collections. They're used by the collections classes to return iterators for object collections, but can also be used directly by applications.

CharBuffer supports working with character sequences (including arrays and Strings) as a lightweight StringBuffer workalike. It extends the CharArray growable character array implementation with added support for append/insert/replace operations on the character sequence, along with comparing various types of character sequences and computing format-independent hash codes for character sequences.



Company Web Site

XML Benchmark Home