edu.columbia.cs.ref.model.matcher.impl
Class EqualsEntityMatcher

java.lang.Object
  extended by edu.columbia.cs.ref.model.matcher.impl.EqualsEntityMatcher
All Implemented Interfaces:
EntityMatcher, java.io.Serializable

public class EqualsEntityMatcher
extends java.lang.Object
implements EntityMatcher

The Class EqualsEntityMatcher is an implementation of the EntityMatcher that uses the equals method ot the entities directly to determine if they match.

Since:
2011-09-27
Version:
0.1
Author:
Pablo Barrio, Goncalo Simoes
See Also:
Serialized Form

Constructor Summary
EqualsEntityMatcher()
           
 
Method Summary
 boolean match(Entity original, Entity entity)
          Determines if the two input entities match
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

EqualsEntityMatcher

public EqualsEntityMatcher()
Method Detail

match

public boolean match(Entity original,
                     Entity entity)
Description copied from interface: EntityMatcher
Determines if the two input entities match

Specified by:
match in interface EntityMatcher
Parameters:
original - the first entity
entity - the second entity
Returns:
true, if the entities match