VBUMLAPI  1.0.0
UML API for Visual Basic
 All Classes Functions Variables Pages
Comparator Interface Reference

Provides the capabilities to compare two objects. More...

Inherited by ModelElementComparator.

Public Member Functions

Function compare (ByVal pValue1 As Object, ByVal pValue2 As Object) As Integer
 Compares object1 with object2.
 

Detailed Description

Provides the capabilities to compare two objects.

Member Function Documentation

Function Comparator::compare ( ByVal pValue1 As  Object,
ByVal pValue2 As  Object 
)

Compares object1 with object2.

Comparation is delegated to implementation classes. The method must return 0 if the object1 is equal to object2, must return 1 if object1 is grather then object2, must return -1 if object1 is less then object2.

Parameters
[in]pValue1Represents the object1
[in]pValue2Represents the object2
Return values
IntegerThe value representing the equality (-1, 0, 1)