Top Inners Fields Constructors Methods
com.mchange.lang

public final Class FloatUtils

extends Object
Class Inheritance

Nested and Inner Type Summary

Modifier and TypeClass and Description
pack-priv static interface
pack-priv static class
pack-priv static class

Field Summary

Modifier and TypeField and Description
pack-priv static final boolean
private static FloatUtils.FParser

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static byte[]
public static float
floatFromByteArray(byte[] b, int offset)

public static String
floatToString(float f, int precision)

public static float
parseFloat(String fStr, float dflt)

public static float
parseFloat(String fStr)

useful in Java1.1 environments, where Float.parseFloat is not defined...

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

DEBUGback to summary
pack-priv static final boolean DEBUG
fParserback to summary
private static FloatUtils.FParser fParser

Constructor Detail

FloatUtilsback to summary
public FloatUtils()

Method Detail

byteArrayFromFloatback to summary
public static byte[] byteArrayFromFloat(float f)
floatFromByteArrayback to summary
public static float floatFromByteArray(byte[] b, int offset)
floatToStringback to summary
public static String floatToString(float f, int precision)
parseFloatback to summary
public static float parseFloat(String fStr, float dflt)
parseFloatback to summary
public static float parseFloat(String fStr) throws NumberFormatException

useful in Java1.1 environments, where Float.parseFloat is not defined...

com.mchange.lang back to summary

pack-priv Interface FloatUtils.FParser

Known Direct Implementers
com.mchange.lang.FloatUtils.J12FParser, com.mchange.lang.FloatUtils.J11FParser

Method Summary

Modifier and TypeMethod and Description
public float

Method Detail

parseFloatback to summary
public float parseFloat(String fStr) throws NumberFormatException
com.mchange.lang back to summary

pack-priv Class FloatUtils.J11FParser

extends Object
implements FParser
Class Inheritance
All Implemented Interfaces
com.mchange.lang.FloatUtils.FParser

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public float
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

J11FParserback to summary
pack-priv J11FParser()

Method Detail

parseFloatback to summary
public float parseFloat(String fStr) throws NumberFormatException

Implements com.mchange.lang.FloatUtils.FParser.parseFloat.

com.mchange.lang back to summary

pack-priv Class FloatUtils.J12FParser

extends Object
implements FParser
Class Inheritance
All Implemented Interfaces
com.mchange.lang.FloatUtils.FParser

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public float
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Constructor Detail

J12FParserback to summary
pack-priv J12FParser()

Method Detail

parseFloatback to summary
public float parseFloat(String fStr) throws NumberFormatException

Implements com.mchange.lang.FloatUtils.FParser.parseFloat.