org.zkoss.lang
Class Integers

java.lang.Object
  extended by org.zkoss.lang.Integers

public class Integers
extends java.lang.Object

Integer utilities.

Author:
tomyeh

Field Summary
static java.lang.Integer ZERO
          The zero.
 
Constructor Summary
Integers()
           
 
Method Summary
static java.lang.String toStringByScale(int val, int digits)
          urns a String object representing the specified integer, with the (at-least) specified digits.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

ZERO

public static final java.lang.Integer ZERO
The zero.

Constructor Detail

Integers

public Integers()
Method Detail

toStringByScale

public static final java.lang.String toStringByScale(int val,
                                                     int digits)
urns a String object representing the specified integer, with the (at-least) specified digits.

Example: toStringByScale(123, 5) returns "00123", toStringByScale(123, 2) returns "123".



Copyright © 2005-2011 Potix Corporation. All Rights Reserved. SourceForge.net Logo