Enum Class StringUtils.Padding

java.lang.Object
java.lang.Enum<StringUtils.Padding>
io.github.amanzat.util.StringUtils.Padding
All Implemented Interfaces:
Serializable, Comparable<StringUtils.Padding>, Constable
Enclosing class:
StringUtils

public static enum StringUtils.Padding extends Enum<StringUtils.Padding>
Defines the padding types.
  • Enum Constant Details

  • Method Details

    • values

      public static StringUtils.Padding[] values()
      Returns an array containing the constants of this enum class, in the order they are declared.
      Returns:
      an array containing the constants of this enum class, in the order they are declared
    • valueOf

      public static StringUtils.Padding valueOf(String name)
      Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)
      Parameters:
      name - the name of the enum constant to be returned.
      Returns:
      the enum constant with the specified name
      Throws:
      IllegalArgumentException - if this enum class has no constant with the specified name
      NullPointerException - if the argument is null
    • concat

      public abstract String concat(String str, String padStr)
      Concatenates the str with the specified pad string.
      Parameters:
      str - The string to pad
      padStr - The pad string
      Returns:
      The concatenated result.