public class IndicCompositeCharacterComparator extends Object implements Comparator<String>
This works on CompositeCharcaters or Juktakshar-s of Indian languages like Bangla, Hindi, etc. CompositeCharcters are single glyphs consisting of more than one characters.
This class works on these CompositeCharacters and places the Strings having higher number of Characters before the one with lower no. This is necessay to properly display the CompositeCharacters when they occur side by side.
// *// *
Constructor and Description |
---|
IndicCompositeCharacterComparator() |
Modifier and Type | Method and Description |
---|---|
int |
compare(String o1, String o2) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
comparing, comparing, comparingDouble, comparingInt, comparingLong, equals, naturalOrder, nullsFirst, nullsLast, reversed, reverseOrder, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
public int compare(String o1, String o2)
compare
in interface Comparator<String>
Copyright © 1998–2016. All rights reserved.