StrictComparable<T extends Object> class abstract

An easy way to implement Comparable in a way that compareTo aggrees with > and == operators

This is a child class of EasyComparable that only takes the covariant type T on the > and < operators

If you need to specify what Type is used on > and < operators, use SpecificComparable

Inheritance
Available extensions

Constructors

StrictComparable()

Properties

hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

compareTo(T other) int
Compares this object to another object.
inherited
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator <(covariant T other) bool
< operator to compare this and other. Overriding it is optional, it has a default implementation that uses == and > operators
inherited
operator ==(Object other) bool
The equality operator.
inherited
operator >(covariant T other) bool
> operator to compare this and other. If this is overridden, the < operator uses it to compute its value, but can also be overridden
inherited