java.lang.Object
org.apache.jena.atlas.lib.NumberUtils
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidformatInt(StringBuilder sb, int value) Fast, but basic, integer to StringBuilderstatic voidformatInt(StringBuilder sb, int value, int width) Place a fixed width representation of a non-negative int into the string bufferstatic voidformatInt(StringBuilder sb, int value, int width, boolean signAlways) Format an integer, which may be signedstatic voidformatSignedInt(StringBuilder sb, int value) Fast, but basic, integer to StringBuilder : always signedstatic voidformatSignedInt(StringBuilder sb, int value, int width) Place a fixed width representation into the string buffer : always signed.static voidformatUnsignedInt(StringBuilder sb, int value, int width) Place a fixed width representation into the string buffer : never signed.
-
Constructor Details
-
NumberUtils
public NumberUtils()
-
-
Method Details
-
formatInt
Fast, but basic, integer to StringBuilder -
formatSignedInt
Fast, but basic, integer to StringBuilder : always signed -
formatInt
Place a fixed width representation of a non-negative int into the string buffer -
formatSignedInt
Place a fixed width representation into the string buffer : always signed. -
formatInt
Format an integer, which may be signed -
formatUnsignedInt
Place a fixed width representation into the string buffer : never signed.
-