Interface org.as2lib.util.Comparable

Description

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.

See Also

Method Index

compare()

Inherited from BasicInterface

Method Detail

compare

public 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.

Return

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