TComparator

Abstract base class for facilities that can compare elements of type TElement.

Inheritance

LevelAncestorDescription
1TObjectUltimate ancestor in a class hierarchy
2TBaseObjectA base class for objects that can be used instead of TObject.
3TReferenceCountedObjectObject that keeps track of the number of times it is referenced from other objects
4TComparator

Source

Comparator.pas (26)

Methods

ScopeVisibilityResultNameDescription
InstancepublicTSignCompare(Left: TElement; Right: TElement) Returns a TSign to indicate the comparison result. One way use this return value is to compare it to sZero using the normal relational operators =, <>, <, <=, > and >=. Should return sPositive if Left is greater than Right, sNegative if it is smaller, and sZero if they are equal.
InstancepublicTBooleanEqual(Left: TElement; Right: TElement)
InstancepublicTBooleanGreaterThan(Left: TElement; Right: TElement)
InstancepublicTBooleanGreaterThanOrEqual(Left: TElement; Right: TElement)
InstancepublicTBooleanLessThan(Left: TElement; Right: TElement)
InstancepublicTBooleanLessThanOrEqual(Left: TElement; Right: TElement)