Class IndicCompositeCharacterComparator

  • All Implemented Interfaces:
    java.util.Comparator<java.lang.String>

    public class IndicCompositeCharacterComparator
    extends java.lang.Object
    implements java.util.Comparator<java.lang.String>

    This works on CompositeCharacters or Juktakshar-s of Indian languages like Bangla, Hindi, etc. CompositeCharacters 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 necessary to properly display the CompositeCharacters when they occur side by side.

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      int compare​(java.lang.String o1, java.lang.String o2)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface java.util.Comparator

        equals, reversed, thenComparing, thenComparing, thenComparing, thenComparingDouble, thenComparingInt, thenComparingLong
    • Constructor Detail

      • IndicCompositeCharacterComparator

        public IndicCompositeCharacterComparator()
    • Method Detail

      • compare

        public int compare​(java.lang.String o1,
                           java.lang.String o2)
        Specified by:
        compare in interface java.util.Comparator<java.lang.String>