Packagevegas
Classpublic class HashCode
InheritanceHashCode Inheritance Object

Collected methods which allow easy implementation of hashCode.



Public Methods
 MethodDefined By
  
equals(o1:*, o2:*):Boolean
[static] Compares two Hashable objects.
HashCode
  
identify(o:*):uint
[static] Indenfity the hashcode value of an object.
HashCode
  
next():uint
[static] Returns the next hashcode value.
HashCode
  
nextName():String
[static] Returns the string representation of the next hashcode value.
HashCode
Method Detail
equals()method
public static function equals(o1:*, o2:*):Boolean

Compares two Hashable objects.

         var isEquals:Boolean = HashCode.equals(o1, o2) ;
         

Parameters

o1:* — the first value to compare.
 
o2:* — the second value to compare.

Returns
Booleantrue of the two object are equals.
identify()method 
public static function identify(o:*):uint

Indenfity the hashcode value of an object.

Parameters

o:*

Returns
uint
next()method 
public static function next():uint

Returns the next hashcode value.

Returns
uint — the next hashcode value.
nextName()method 
public static function nextName():String

Returns the string representation of the next hashcode value.

Returns
String — the string representation of the next hashcode value.