Skip to main content

containsEqualObject

Short summary

This method checks if a given object is contained in the collection. The result depends on the collection type and may differ from the object.compareTo result.

Return: FALSE: collection does not contain an equal object TRUE: collection does contain an equal object

  • Return type: BOOL

Parameters

NameTypeCommentKind
objectCNM_AbstractObject.IObjectthe object to be checked if it exists inside the collectioninput

Code

Declaration

METHOD containsEqualObject :BOOL
VAR_INPUT
(*the object to be checked if it exists inside the collection*)
object :CNM_AbstractObject.IObject;
END_VAR