Class HprString

java.lang.Object
pl.decerto.hyperon.runtime.utils.HprString

public abstract class HprString extends Object
Author:
przemek hertel
  • Method Details

    • alignLeft

      public static String alignLeft(String s, int len)
      Function to guide many strings to the left: returns a string of length flax supplemented by spaces on the right side, if it is necessary; otherwise returns the same object
      Parameters:
      s - String object to alight
      len - length
      Returns:
      string s of length flax supplemented by spaces on the right side, or returns the same object
    • alignLeft

      public static String alignLeft(String s, char c, int len)
    • alignRight

      public static String alignRight(String s, int len)
      Function to guide the string to the right: returns string s supplemented with spaces on the left side, so that it will get the length of linen.
      Parameters:
      s - String object to alight
      len - length
      Returns:
      string s supplemented with spaces on the left side
    • alignRight

      public static String alignRight(String s, char c, int len)