Object » Magnitude Character » DateAndTime » Number » Float » Fraction » Integer » LargePositiveInteger LargeNegativeInteger SmallInteger Time »
Magnitude is the common superclass of entities that can be compared along a linear dimension. Examples of such objects are time values , calendar dates, numbers, the letters of the alphabet.
Subclasses of Magnitude have to implement these instance messages:
< aMagnitude
has to answer a boolean value. true is answered when the
receiver is smaller than aMagnitude.
= aMagnitude
has to answer a boolean value. true is answered when
the receiver and aMagnitude are equal.
hash
has to answer an integer value that has all required properties of a hash value.
between: min
and: max
Answer whether the receiver is less than or equal to the argument, max,
and greater than or equal to the argument, min
max: aMagnitude
Answer the receiver or the argument, whichever has the greater
magnitude.
min: aMagnitude
Answer the receiver or the argument, whichever has the lesser
magnitude.