| java.lang.Object org.tp23.antinstaller.runtime.logic.StringLengthComparator
StringLengthComparator | public class StringLengthComparator implements Comparator(Code) | | Compare strings based on their length. Used by ExpressionBuilder to ensure
that longest match is attempted first.
author: mwilson version: $Id: StringLengthComparator.java,v 1.1 2006/09/08 19:16:31 version: anothermwilson Exp $ since: 0.7.4 patch 2 |
compare | public int compare(Object o1, Object o2)(Code) | | Sort by descending String length
Parameters: o1 - first string Parameters: o2 - second string difference between the length of o2 and o1 |
|
|