Class StringUtil.FormatPattern

java.lang.Object
net.orbyfied.j8.util.StringUtil.FormatPattern
Enclosing class:
StringUtil

public static class StringUtil.FormatPattern extends Object
Formatting pattern.
  • Constructor Details

    • FormatPattern

      public FormatPattern()
  • Method Details

    • part

      public Object part(int i)
      Get a part at index I.
      Parameters:
      i - The index.
      Returns:
      The part or null if outbound.
    • string

      public String string(int i, Object... values)
      To strings one part of this pattern.
      Parameters:
      i - The part index.
      values - The values.
      Returns:
      The string or null if something failed.
    • format

      public String format(Object... values)
      Formats this pattern using the values and returns it as a string.
      Parameters:
      values - Values.
      Returns:
      The string or null if it failed.