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.
| Access | Abstract | Final | Extends | Implements |
|---|---|---|---|---|
| - | No | No | CNM_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
- Parameters:
object(CNM_AbstractObject.IObject): the object to be checked if it exists inside the collection
- Return type:
BOOL
This method checks if a given object is contained in the collection.…
containsObject
- Parameters:
object(CNM_AbstractObject.IObject): the object to be checked if it exists inside the collection
- Return type:
BOOL
This method checks if a given object is contained in the collection. …
createNewIterator
- Return type: CNM_ReturnTypes.SingleExecutionResult
This method returns a NEW Iterator instance which can iterate the collection.…
Code
Declaration
INTERFACE ICollection EXTENDS CNM_AbstractObject.IObject, IClearable, IForEachable