org.infai.emo.matcher.impl
Class NullComparator

java.lang.Object
  extended by org.infai.emo.matcher.Comparator
      extended by org.infai.emo.matcher.ElementComparator
          extended by org.infai.emo.matcher.impl.NullComparator

public class NullComparator
extends ElementComparator

Comparator for initializing the comparison-process with zero-values.

Version:
1.0.0
Author:
Stanley Hillner
See Also:
ElementComparator

Constructor Summary
NullComparator()
           
 
Method Summary
 double compareTo(org.eclipse.emf.ecore.EObject leftElement, org.eclipse.emf.ecore.EObject rightElement)
          Method does not compare anything!
 
Methods inherited from class org.infai.emo.matcher.Comparator
getName, setName, toString
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

NullComparator

public NullComparator()
Method Detail

compareTo

public double compareTo(org.eclipse.emf.ecore.EObject leftElement,
                        org.eclipse.emf.ecore.EObject rightElement)
Method does not compare anything!

Specified by:
compareTo in class Comparator
Parameters:
leftElement - the first element to compare with the second one.
rightElement - the second element to compare with the first one.
Returns:
0.0 for each pair of elements!
See Also:
EObject