Class EqualComparator
java.lang.Object
org.apache.tools.ant.types.selectors.modifiedselector.EqualComparator
- All Implemented Interfaces:
- Comparator<Object>
Simple implementation of Comparator for use in CacheSelector.
 compare() returns '0' (should not be selected) if both parameter
 are equal otherwise '1' (should be selected).
- Since:
- Ant 1.6
- Version:
- 2003-09-13
- 
Constructor SummaryConstructors
- 
Method SummaryMethods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface java.util.Comparatorequals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
- 
Constructor Details- 
EqualComparatorpublic EqualComparator()
 
- 
- 
Method Details- 
compareImplements Comparator.compare().- Specified by:
- comparein interface- Comparator<Object>
- Parameters:
- o1- the first object
- o2- the second object
- Returns:
- 0, if both are equal, otherwise 1
 
- 
toString
 
-