Purpose: A SortedCollectionContainerPolicy is ContainerPolicy whose container class implements the SortedInterface interface. Added for BUG # 3233263
Responsibilities: Provide the functionality to operate on an instance of a SortedSet.
ContainerPolicy, MapContainerPolicy
| Modifier and Type | Field and Description |
|---|---|
| protected Class | |
| protected String | |
| protected Comparator |
| Access | Constructor and Description |
|---|---|
| public | |
| public | SortedCollectionContainerPolicy(Class<?> containerClass)
INTERNAL: Construct a new policy for the specified class. |
| public | SortedCollectionContainerPolicy(String containerClassName)
INTERNAL: Construct a new policy for the specified class name. |
| Modifier and Type | Method and Description |
|---|---|
| public Object | containerInstance()
Overrides org. Implements org. |
| public void | convertClassNamesToClasses(ClassLoader classLoader)
Overrides org. |
| public Comparator | |
| public Class | |
| public String | |
| public void | setComparator(Comparator<T> comparator)
INTERNAL: Sets a comparator object for this policy to use when instantiating a new SortedSet object. |
| public void | setComparatorClass(Class<?> comparatorClass)
INTERNAL: Sets a comparator class for this policy to use when instantiating a new SortedSet object. |
| public void | setComparatorClassName(String comparatorClassName)
INTERNAL: Sets a comparator class name for this policy to use when instantiating a new SortedSet object. |
| comparatorClass | back to summary |
|---|---|
| protected Class<?> comparatorClass | |
| comparatorClassName | back to summary |
|---|---|
| protected String comparatorClassName | |
| m_comparator | back to summary |
|---|---|
| protected Comparator<T> m_comparator | |
| SortedCollectionContainerPolicy | back to summary |
|---|---|
| public SortedCollectionContainerPolicy() INTERNAL: Construct a new policy. | |
| SortedCollectionContainerPolicy | back to summary |
|---|---|
| public SortedCollectionContainerPolicy(Class<?> containerClass) INTERNAL: Construct a new policy for the specified class. | |
| SortedCollectionContainerPolicy | back to summary |
|---|---|
| public SortedCollectionContainerPolicy(String containerClassName) INTERNAL: Construct a new policy for the specified class name. | |
| containerInstance | back to summary |
|---|---|
| public Object containerInstance() Overrides org. Implements org. INTERNAL Override from ContainerPolicy. Need to maintain the comparator in the new instance
| |
| convertClassNamesToClasses | back to summary |
|---|---|
| public void convertClassNamesToClasses(ClassLoader classLoader) Overrides org. INTERNAL: Convert all the class-name-based settings in this SortedCollectionContainerPolicy to actual class-based settings. This method is used when converting a project that has been built with class names to a project with classes.
| |
| getComparator | back to summary |
|---|---|
| public Comparator INTERNAL: Return the stored comparator | |
| getComparatorClass | back to summary |
|---|---|
| public Class INTERNAL: Return the stored comparator class | |
| getComparatorClassName | back to summary |
|---|---|
| public String getComparatorClassName() INTERNAL: return stored comparator class name | |
| setComparator | back to summary |
|---|---|
| public void setComparator(Comparator<T> comparator) INTERNAL: Sets a comparator object for this policy to use when instantiating a new SortedSet object. | |
| setComparatorClass | back to summary |
|---|---|
| public void setComparatorClass(Class<?> comparatorClass) INTERNAL: Sets a comparator class for this policy to use when instantiating a new SortedSet object. | |
| setComparatorClassName | back to summary |
|---|---|
| public void setComparatorClassName(String comparatorClassName) INTERNAL: Sets a comparator class name for this policy to use when instantiating a new SortedSet object. | |