org.exolab.core.foundation
Interface CollectionManagerIfc

All Known Implementing Classes:
PMDCollectionManager

public interface CollectionManagerIfc

This interface defines methods for creating specific types of collections including hashtables and vectors. It is part of the pesistence framework.

Version:
$Revision: 1.2 $ $Date: 2000/04/04 22:52:26 $
Author:
Jim Alateras

Method Summary
 HashMapIfc createHashMap()
          Create a hashmap with default capacity and return a reference to the client.
 TreeMapIfc createTreeMap()
          Create a treemap with default capacity and return a reference to the client.
 TreeMapIfc createTreeMap(java.util.Comparator comparator)
          Create a treemap with the specified comparator and return a reference client.
 TreeSetIfc createTreeSet()
          Create a treeset with default capacity and return a reference to the client.
 TreeSetIfc createTreeSet(java.util.Comparator comparator)
          Create a treeset with the specified comparator and return a reference client.
 VectorIfc createVector()
          Create a vector with default capacity and return a reference to the to the client.
 

Method Detail

createVector

VectorIfc createVector()
                       throws FailedToCreateCollectionException
Create a vector with default capacity and return a reference to the to the client. If the vector cannot be created then throw FailedToCreate- CollectionException exception.

Returns:
VectorIfc returned object
Throws:
FailedToCreateCollectionException

createHashMap

HashMapIfc createHashMap()
                         throws FailedToCreateCollectionException
Create a hashmap with default capacity and return a reference to the client. If the hahsmap cannot be created then throw FailedToCreate- CollectionException exception.

Returns:
HashMapIfc returned object
Throws:
FailedToCreateCollectionException

createTreeMap

TreeMapIfc createTreeMap()
                         throws FailedToCreateCollectionException
Create a treemap with default capacity and return a reference to the client. If the treemap cannot be created then throw FailedToCreate- CollectionException exception

Returns:
TreeMapIfc returned object
Throws:
FailedToCreateCollectionException

createTreeMap

TreeMapIfc createTreeMap(java.util.Comparator comparator)
                         throws FailedToCreateCollectionException
Create a treemap with the specified comparator and return a reference client. If the treemap cannot be created then throw FailedToCreate- CollectionException exception

Parameters:
comparator - specified comparator
Returns:
TreeMapIfc returned object
Throws:
FailedToCreateCollectionException

createTreeSet

TreeSetIfc createTreeSet()
                         throws FailedToCreateCollectionException
Create a treeset with default capacity and return a reference to the client. If the treeset cannot be created then throw FailedToCreate- CollectionException exception

Returns:
TreeSetIfc returned object
Throws:
FailedToCreateCollectionException

createTreeSet

TreeSetIfc createTreeSet(java.util.Comparator comparator)
                         throws FailedToCreateCollectionException
Create a treeset with the specified comparator and return a reference client. If the treeset cannot be created then throw FailedToCreate- CollectionException exception

Parameters:
comparator - specified comparator
Returns:
TreeSetIfc returned object
Throws:
FailedToCreateCollectionException


Copyright © 1999-2012 The Exolab Group. All Rights Reserved.