Java com.google.common.primitives Floats fields, constructors, methods, implement or subclass

Example usage for Java com.google.common.primitives Floats fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for com.google.common.primitives Floats.

The text is from its open source code.

Field

intBYTES
The number of bytes required to represent a primitive float value.

Method

ListasList(float... backingArray)
Returns a fixed-size list backed by the specified array, similar to Arrays#asList(Object[]) .
intcompare(float a, float b)
Compares the two specified float values using Float#compare(float,float) .
float[]ensureCapacity(float[] array, int minLength, int padding)
Returns an array containing the same values as array , but guaranteed to be of a specified minimum length.
inthashCode(float value)
Returns a hash code for value ; equal to the result of invoking ((Float) value).hashCode() .
booleanisFinite(float value)
Returns true if value represents a real number.
floatmax(float... array)
Returns the greatest value present in array , using the same rules of comparison as Math#max(float,float) .
floatmin(float... array)
Returns the least value present in array , using the same rules of comparison as Math#min(float,float) .
ConverterstringConverter()
Returns a serializable converter object that converts between strings and floats using Float#valueOf and Float#toString() .
float[]toArray(Collection collection)
Returns an array containing each value of collection , converted to a float value in the manner of Number#floatValue .
FloattryParse(String string)
Parses the specified string as a single-precision floating point value.