Class QFormat


  • public class QFormat
    extends java.lang.Object
    good old test format methods.
    • Constructor Summary

      Constructors 
      Constructor Description
      QFormat()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String Currency​(double value, int len)
      Method Currency
      static java.lang.String DoubleRight​(double value, int len)
      Method DoubleRight
      static java.lang.String getCurrentDate()
      Method getCurrentDate
      static java.lang.String Number0​(long num, int len)
      Method Number0
      static java.lang.String NumberRight​(long value, int len)
      Method NumberRight
      static java.lang.String RepeatedChar​(char ch, int len)
      Method RepeatedChar
      static java.lang.String StringLeft​(java.lang.String str, int len)
      Method StringLeft
      static java.lang.String StringRight​(java.lang.String str, int len)
      Method StringRight
      • Methods inherited from class java.lang.Object

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

      • QFormat

        public QFormat()
    • Method Detail

      • Number0

        public static java.lang.String Number0​(long num,
                                               int len)
        Method Number0
        Parameters:
        num -
        len -
      • StringRight

        public static java.lang.String StringRight​(java.lang.String str,
                                                   int len)
        Method StringRight
        Parameters:
        str -
        len -
      • StringLeft

        public static java.lang.String StringLeft​(java.lang.String str,
                                                  int len)
        Method StringLeft
        Parameters:
        str -
        len -
      • NumberRight

        public static java.lang.String NumberRight​(long value,
                                                   int len)
        Method NumberRight
        Parameters:
        value -
        len -
      • DoubleRight

        public static java.lang.String DoubleRight​(double value,
                                                   int len)
        Method DoubleRight
        Parameters:
        value -
        len -
      • Currency

        public static java.lang.String Currency​(double value,
                                                int len)
        Method Currency
        Parameters:
        value -
        len -
      • getCurrentDate

        public static java.lang.String getCurrentDate()
        Method getCurrentDate
      • RepeatedChar

        public static java.lang.String RepeatedChar​(char ch,
                                                    int len)
        Method RepeatedChar
        Parameters:
        ch -
        len -