Class Converter


  • public final class Converter
    extends Object
    Author:
    jumperchen
    • Constructor Detail

      • Converter

        public Converter()
    • Method Detail

      • numToAbc

        public static String numToAbc​(int index)
        Converts 0-based index to abc.
        Parameters:
        index - 0-based.
        Returns:
      • rangeToA1

        public static String rangeToA1​(int row,
                                       int column)
        Converts a range to A1 notation.
      • rangeToRef

        public static Ref rangeToRef​(int row,
                                     int column)
      • areaToRef

        public static Ref areaToRef​(int row,
                                    int column,
                                    int lastRow,
                                    int lastColumn)
      • a1ToRef

        public static Ref a1ToRef​(String a1notation)
      • abcToNum

        public static int abcToNum​(String val)
        Converts abc to number. (like A to 0, B to 1)
        Parameters:
        val -
        Returns:
      • refToA1

        public static String refToA1​(Ref ref)
      • asList

        public static final <T> List<T> asList​(T... ary)
      • asMap

        public static Map asMap​(Object... args)
      • ptToPx

        public static int ptToPx​(Number pt)
      • getFirst

        public static <T> T getFirst​(T... args)
      • getLast

        public static <T> T getLast​(T... args)