Skip to main content

AbstractList

Short summary

An abstract class to implement methods which are not dependent on the data structure.

AccessAbstractFinalExtendsImplements
YesNoAbstractCollectionCNM_CollectionInterfaces.IList, IListHelpers

UML Diagram

Properties

className

Type: CNM_AbstractObject.ClassName

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

listChangeIndex

Type: __XWORD

sort

Type: CNM_CollectionInterfaces.ISortable

This property returns strategies to sort the list in a desired order.

Methods

Abstract methods

append

This method adds the given CNM_AbstractObject.IObject to the end of the list.

appendCollection

This method adds all elements of the given collection to the end of this list.

dequeue

This property returns the last object in the first and removes it from the list. Can be seen as opposite of prepend.

instantSorting

invert

  • Return type: VOID

Inverts the order of the elements inside the object. Does not apply any kind of sorting, only reverses.

pop

This property returns the last object in the list and removes it from the list. Can be seen as opposite of append.

prepend

This method adds the given obejct to the end of the list.

prependCollection

This method adds all elements of the given collection to the start of this list.

remove

This method removes the first instance of the given object from the list.

sorting

Code

Declaration

FUNCTION_BLOCK ABSTRACT AbstractList EXTENDS AbstractCollection IMPLEMENTS CNM_CollectionInterfaces.IList, IListHelpers