Skip to main content

ICollection

Short summary

Interface for collection classes. Every class with a collection of elements should implement this interface. Collections contain CNM_AbstractObject.IObject as elements.

AccessAbstractFinalExtendsImplements
-NoNoCNM_AbstractObject.IObject, IClearable, IForEachable-

UML Diagram

Properties

hasElement

Type: BOOL

This property returns TRUE if the collection has any element.

isEmpty

Type: BOOL

This property returns TRUE if the collection is empty.

size

Type: UDINT

This property returns the number of elements inside this collection.

Methods

containsEqualObject

This method checks if a given object is contained in the collection.

containsObject

This method checks if a given object is contained in the collection.

createNewIterator

This method returns a NEW Iterator instance which can iterate the collection.

Code

Declaration

INTERFACE ICollection EXTENDS CNM_AbstractObject.IObject, IClearable, IForEachable