com.servingxml.components.content.dynamic
Class ArrayIdentifier

java.lang.Object
  extended by com.servingxml.components.content.dynamic.ArrayIdentifier
All Implemented Interfaces:
Identifier

public class ArrayIdentifier
extends java.lang.Object
implements Identifier

This class implements an equality relation between two arrays. Here, two arrays are regarded as equal if they share the same elements, irrespective of order.


Constructor Summary
ArrayIdentifier()
           
 
Method Summary
 boolean equalTo(java.lang.Object o1, java.lang.Object o2)
          Compares its two key arguments for equality.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ArrayIdentifier

public ArrayIdentifier()
Method Detail

equalTo

public boolean equalTo(java.lang.Object o1,
                       java.lang.Object o2)
Description copied from interface: Identifier
Compares its two key arguments for equality. Returns true or false depending on whether the two key arguments are equal.

Specified by:
equalTo in interface Identifier
Parameters:
o1 - the first key object to be compared.
o2 - the second key object to be compared.
Returns:
true or false depending on whether the two key arguments are equal.