Skip to main content

CollectionFactory

Short summary

Class that provides factory methods for new collection instances.

AccessAbstractFinalExtendsImplements
-NoNoCNM_AbstractObject.ObjectCNM_CollectionInterfaces.ICollectionFactory

UML Diagram

Properties

className

Type: CNM_AbstractObject.ClassName

This abstract property returns the class name of the concrete object,

Methods

clone

This method is used to create a new instance

deepClone

This method is used to create a new instance

getNewArrayList

A method to generate a new ArrayList.

getNewArrayListMergeSorter

This method will create a new MergeSorter

getNewArrayListShellsorter

This method will create a new shellsorter that can sort an Arraylist

getNewBBSTree

This method can be used to dynamically create a __NEW binary balanced search tree.

getNewBBSTreeNode

function to create a new balanced binary searchtree node

getNewDoublyLinkedElement

Method to create new Instance of DoublyLinkedElements and automatically link with other ellements.

getNewLinkedList

A method to generate a new LinkedList.

getNewLinkedListMergeSorter

This method will create a new MergeSorter for linked lists.

Code

Declaration

FUNCTION_BLOCK CollectionFactory EXTENDS CNM_AbstractObject.Object IMPLEMENTS CNM_CollectionInterfaces.ICollectionFactory