com.btobits.util.misc
Class NumberUtil

java.lang.Object
  extended by com.btobits.util.misc.NumberUtil

public class NumberUtil
extends Object


Constructor Summary
NumberUtil()
           
 
Method Summary
static byte[] formatFloat(double value)
           
static byte[] formatInt(long value)
           
static boolean isInvalidFloat(byte[] buf, int off, int len)
           
static boolean isInvalidInt(byte[] buf, int off, int len)
           
static double parseFloat(byte[] buf, int off, int len)
           
static long parseInt(byte[] buf, int off, int len)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NumberUtil

public NumberUtil()
Method Detail

isInvalidInt

public static boolean isInvalidInt(byte[] buf,
                                   int off,
                                   int len)

parseInt

public static long parseInt(byte[] buf,
                            int off,
                            int len)

isInvalidFloat

public static boolean isInvalidFloat(byte[] buf,
                                     int off,
                                     int len)

parseFloat

public static double parseFloat(byte[] buf,
                                int off,
                                int len)

formatInt

public static byte[] formatInt(long value)

formatFloat

public static byte[] formatFloat(double value)


Copyright © 2000-2014 EPAM Systems. All Rights Reserved.