Skip to main content

getEqualObject

Short summary

Searches an object that is equal to the provided object in terms of the compareTo method (or a comparator provided by the parent).

Return: TRUE when an object that is equal is found, otherwise FALSE

  • Return type: BOOL

Parameters

NameTypeCommentKind
objectCNM_CollectionInterfaces.CNM_AbstractObject.IObjectThe object to search forinput
foundObjectCNM_CollectionInterfaces.CNM_AbstractObject.IObjectThe found object or null if not foundoutput

Code

Declaration

METHOD getEqualObject : BOOL
VAR_INPUT
(*The object to search for*)
object : CNM_CollectionInterfaces.CNM_AbstractObject.IObject;
END_VAR
VAR_OUTPUT
(*The found object or null if not found*)
foundObject : CNM_CollectionInterfaces.CNM_AbstractObject.IObject;
END_VAR

Implementation

getEqualObject := THIS^.set.getEqualObject(object := object, foundObject => foundObject);