Access keys

Comparable

Kind of class: interface
Inherits from: BasicInterface
Version: 1.0
Author: Martin Heidegger
Classpath: org.as2lib.util.Comparable
File last modified: Monday, 19 September 2005, 22:16:04
Compareable represents a class that has the ability to compare different
instances if they are equal.

The == and the === operators ignore the fact that different instances of
the same class with the same value are equal.

Comparable allows to implement your own strategy to compare the
current instance with a different instance.

Summary

Instance methods
Instance methods inherited from BasicInterface

Instance methods

compare

function compare (
object) : Boolean
Compares the instance with the passed-in object.

The implementation compares the passed-in object if it represents
the same content as the current instance.

Returns:
true if the passed-in object is equal to the instance.