-- File: TCollection_Compare.cdl -- Created: Tue May 14 18:07:48 1991 -- Author: Annick PANCHER -- -- Revised: Mireille MERCIEN -- -- Copyright: Matra Datavision 1992 deferred generic class Compare from TCollection ( Item as any ) ---Purpose: Defines a comparison operator which can be used by -- any ordered structure. The way to compare items -- has to be described in subclasses, which inherit -- from instantiations of Compare. is IsLower (me; Left, Right: Item) ---Level: Public ---Purpose: returns True if is lower than . returns Boolean is virtual; IsGreater (me; Left, Right: Item) ---Level: Public ---Purpose: returns True if is greater than . returns Boolean is virtual; IsEqual(me; Left, Right: Item) ---Level: Public ---Purpose: returns True when and are equal. returns Boolean is virtual; end;