Class Strings


  • public final class Strings
    extends java.lang.Object
    Collection of static methods related to strings. This class is required because class String is declared final.
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private static java.lang.ref.WeakReference<java.lang.StringBuilder> bLANKS
      An ever growing buffer of blanks used by getBlanks(int).
    • Constructor Summary

      Constructors 
      Modifier Constructor Description
      private Strings()
      Prevents Strings from being instantiated.
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static java.lang.String getBlanks​(int num)
      Returns a string consisting of the given number of blanks.
      • Methods inherited from class java.lang.Object

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

      • bLANKS

        private static java.lang.ref.WeakReference<java.lang.StringBuilder> bLANKS
        An ever growing buffer of blanks used by getBlanks(int).
    • Constructor Detail

      • Strings

        private Strings()
        Prevents Strings from being instantiated.
    • Method Detail

      • getBlanks

        public static java.lang.String getBlanks​(int num)
        Returns a string consisting of the given number of blanks.