fr.paris.lutece.plugins.form.modules.comparevalidators.business.comparator
Class ComparatorEqual

java.lang.Object
  extended by fr.paris.lutece.plugins.form.modules.comparevalidators.business.comparator.ComparatorEqual
All Implemented Interfaces:
IComparator

public class ComparatorEqual
extends Object
implements IComparator

ComparatorEqual


Constructor Summary
ComparatorEqual()
           
 
Method Summary
 boolean compare(String strValue1, String strValue2)
          Checks if the values are equals
 String getMessage()
          Gets the I18n message key
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ComparatorEqual

public ComparatorEqual()
Method Detail

compare

public boolean compare(String strValue1,
                       String strValue2)
Checks if the values are equals

Specified by:
compare in interface IComparator
Parameters:
byValue1 - the first value
byValue2 - the second value
Returns:
true if the values are equals, otherwise false

getMessage

public String getMessage()
Gets the I18n message key

Specified by:
getMessage in interface IComparator
Returns:
the I18n message key


Copyright © 2014 Mairie de Paris. All Rights Reserved.