/* StringSorterLexicoCaseInsensitive.java ** An instance of this class has methods (inherited from its parent) ** by which to sort an array (or a segment thereof) of Strings into ** ascending order. It supplies the body of isLessThan() for the ** purpose of defining/implementing an ordering on strings. Here, ** that is what one might call "case-insensitive lexicographic ordering", ** meaning the usual lexicographic ordering, but treating the lower- ** and upper-case versions of letters to be equal. */ public class StringSorterLexicoCaseInsensitive extends StringSorter { /* Returns true iff s1 < s2 according to lexicographic ordering, ** but ignoring the cases of the letters in s1 and s2. ** That is, the upper- and lower-case versions of each letter ** should be considered to be equal to each other, so that ** 'A' = 'a' < 'B' = 'b' < ... 'y' < 'Z' = 'z'. ** (Thus, for example, "alligator" < "Zebra" according to this ** ordering, contrary to case-sensitive lexicographic ordering.) */ @Override protected boolean isLessThan(String s1, String s2) { return false; // STUB } }