org.openjena.atlas.lib
Class NumberUtils

java.lang.Object
  extended by org.openjena.atlas.lib.NumberUtils

public class NumberUtils
extends Object


Constructor Summary
NumberUtils()
           
 
Method Summary
static void formatInt(StringBuilder sb, int value)
          Fast, but basic, integer to StringBuilder
static void formatInt(StringBuilder sb, int value, int width)
          Place a fixed width representation of a non-negative int into the string buffer
static void formatInt(StringBuilder sb, int value, int width, boolean signAlways)
           
static void formatSignedInt(StringBuilder sb, int value)
          Fast, but basic, integer to StringBuilder : always signed
static void formatSignedInt(StringBuilder sb, int value, int width)
          Place a fixed width representation into the string buffer : always signed.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberUtils

public NumberUtils()
Method Detail

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)


Licenced under the Apache License, Version 2.0