All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface aid.util.assoc.AssocFactory

public interface AssocFactory
This class follows the design pattern Abstract Factory to create objects used as containers for association between classes. Three kind of containers are provided The interfaces to these containers are based on the Collection package of Java which is standard in the JDK 1.2 and that can be also used in the JDK 1.1 with a specific version.

The current version of this package uses the JDK 1.1 version of the Collection package but can be easily updated by changing the import statements

Version:
$Revision$, $Date$
Author:
M. Jaczynski

Variable Index

 o DEFAULT
 o FREQUENT
constant used as a modifier for the creation of a container that can handle frequent access to the elements.
 o HUGE
constant used as a modifier for the creation of a container that can handle a huge amount of elements.
 o SMALL

Method Index

 o newArrayAssoc(int)
creates an array association
 o newArrayAssoc(int, int, Object)
creates an array association with modifiers and parameters
 o newArrayAssoc(int, Object[])
creates an array association with modifiers and parameters
 o newBoundedListAssoc(List, int)
creates a list association with a size limit
 o newBoundedQualifiedAssoc(Map, int)
creates a qualified association with a size limit.
 o newBoundedSetAssoc(Set, int)
 o newConstArrayAssoc(List)
creates a unmodifiable view of an existing list association
 o newConstListAssoc(List)
creates a unmodifiable view of an existing list association
 o newConstQualifiedAssoc(Map)
creates a unmodifiable view of an existing list association
 o newConstSetAssoc(Set)
 o newListAssoc()
create a default list association
 o newListAssoc(int)
creates a new list association with some modifers
 o newQualifiedAssoc()
creates an default qualified association
 o newQualifiedAssoc(int)
creates a qualified association with modifiers
 o newSetAssoc()
 o newSetAssoc(int)

Variables

 o DEFAULT
 public static final int DEFAULT
 o HUGE
 public static final int HUGE
constant used as a modifier for the creation of a container that can handle a huge amount of elements. The meaning of this modifer is application specific.

 o SMALL
 public static final int SMALL
 o FREQUENT
 public static final int FREQUENT
constant used as a modifier for the creation of a container that can handle frequent access to the elements. The use of this modifer is application specific.

Methods

 o newListAssoc
 public abstract List newListAssoc()
create a default list association

Returns:
the created association
 o newListAssoc
 public abstract List newListAssoc(int modifiers)
creates a new list association with some modifers

Parameters:
modifiers - the modifiers built by adding modifier constants
Returns:
the created association
 o newBoundedListAssoc
 public abstract List newBoundedListAssoc(List assoc,
                                          int size)
creates a list association with a size limit

Parameters:
assoc - the existing association
size - the size limit
Returns:
the created association
 o newConstListAssoc
 public abstract List newConstListAssoc(List assoc)
creates a unmodifiable view of an existing list association

Parameters:
assoc - the existing association
Returns:
the unmodifiable association
 o newArrayAssoc
 public abstract List newArrayAssoc(int size)
creates an array association

Parameters:
size - the size of the array
Returns:
the created association
 o newArrayAssoc
 public abstract List newArrayAssoc(int modifiers,
                                    Object values[])
creates an array association with modifiers and parameters

Parameters:
modifiers - the modifiers built by adding modifier constants
values - the default array of values
Returns:
the created association
 o newArrayAssoc
 public abstract List newArrayAssoc(int modifiers,
                                    int size,
                                    Object value)
creates an array association with modifiers and parameters

Parameters:
modifiers - the modifiers built by adding modifier constants
size - the size of containers
value - the default value affected to every index
Returns:
the created association
 o newConstArrayAssoc
 public abstract List newConstArrayAssoc(List assoc)
creates a unmodifiable view of an existing list association

Parameters:
assoc - the existing association
Returns:
the created association
 o newQualifiedAssoc
 public abstract Map newQualifiedAssoc()
creates an default qualified association

Returns:
the created association
 o newQualifiedAssoc
 public abstract Map newQualifiedAssoc(int modifiers)
creates a qualified association with modifiers

Parameters:
modifiers - the modifiers built by adding modifier constants
Returns:
the created association
 o newBoundedQualifiedAssoc
 public abstract Map newBoundedQualifiedAssoc(Map assoc,
                                              int size)
creates a qualified association with a size limit.

Parameters:
assooc - the existing assciation
size - the size limit
Returns:
the created association
 o newConstQualifiedAssoc
 public abstract Map newConstQualifiedAssoc(Map assoc)
creates a unmodifiable view of an existing list association

Parameters:
assoc - the existing association
Returns:
the created association
 o newSetAssoc
 public abstract Set newSetAssoc()
 o newSetAssoc
 public abstract Set newSetAssoc(int modifiers)
 o newBoundedSetAssoc
 public abstract Set newBoundedSetAssoc(Set assoc,
                                        int size)
 o newConstSetAssoc
 public abstract Set newConstSetAssoc(Set assoc)

All Packages  Class Hierarchy  This Package  Previous  Next  Index