Class NumberUtils

java.lang.Object
org.apache.jena.atlas.lib.NumberUtils

public class NumberUtils extends Object
  • Constructor Details

    • NumberUtils

      public NumberUtils()
  • Method Details

    • formatInt

      public static void formatInt(StringBuilder sb, int value)
      Fast, but basic, integer to StringBuilder
    • formatSignedInt

      public static void formatSignedInt(StringBuilder sb, int value)
      Fast, but basic, integer to StringBuilder : always signed
    • formatInt

      public static void formatInt(StringBuilder sb, int value, int width)
      Place a fixed width representation of a non-negative int into the string buffer
    • formatSignedInt

      public static void formatSignedInt(StringBuilder sb, int value, int width)
      Place a fixed width representation into the string buffer : always signed.
    • formatInt

      public static void formatInt(StringBuilder sb, int value, int width, boolean signAlways)
      Format an integer, which may be signed
    • formatUnsignedInt

      public static void formatUnsignedInt(StringBuilder sb, int value, int width)
      Place a fixed width representation into the string buffer : never signed.