Class GreekAlphabetFactory


  • public class GreekAlphabetFactory
    extends java.lang.Object
    This class can produce String combinations representing a number built with Greek letters (from alpha to omega, then alpha alpha, alpha beta, alpha gamma). We are aware of the fact that the original Greek numbering is different; See http://www.cogsci.indiana.edu/farg/harry/lan/grknum.htm#ancient but this isn't implemented yet; the main reason being the fact that we need a font that has the obsolete Greek characters qoppa and sampi.
    Since:
    2.0.7 (was called GreekNumberFactory in earlier versions)
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getLowerCaseString​(int index)
      Changes an int into a lower case Greek letter combination.
      static java.lang.String getString​(int index)
      Changes an int into a lower case Greek letter combination.
      static java.lang.String getString​(int index, boolean lowercase)
      Changes an int into a Greek letter combination.
      static java.lang.String getUpperCaseString​(int index)
      Changes an int into a upper case Greek letter combination.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • GreekAlphabetFactory

        public GreekAlphabetFactory()
    • Method Detail

      • getString

        public static final java.lang.String getString​(int index)
        Changes an int into a lower case Greek letter combination.
        Parameters:
        index - the original number
        Returns:
        the letter combination
      • getLowerCaseString

        public static final java.lang.String getLowerCaseString​(int index)
        Changes an int into a lower case Greek letter combination.
        Parameters:
        index - the original number
        Returns:
        the letter combination
      • getUpperCaseString

        public static final java.lang.String getUpperCaseString​(int index)
        Changes an int into a upper case Greek letter combination.
        Parameters:
        index - the original number
        Returns:
        the letter combination
      • getString

        public static final java.lang.String getString​(int index,
                                                       boolean lowercase)
        Changes an int into a Greek letter combination.
        Parameters:
        index - the original number
        lowercase - set to lowercase
        Returns:
        the letter combination