double primitives, that are not already found in
either Double or Arrays.
See the Guava User Guide article on primitive utilities.
| Modifier and Type | Class and Description |
|---|---|
| private static class | |
| private static class | |
| private static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | BYTES
The number of bytes required to represent a primitive |
| pack-priv static final Pattern | FLOATING_POINT_PATTERN
This is adapted from the regex suggested by |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static List | Returns: a list view of the arraythe array to back the list backingArray)Returns a fixed-size list backed by the specified array, similar to |
| public static int | Returns: a negative value ifa is less than b; a positive value if a is
greater than b; or zero if they are equalthe first a, double double to comparethe second b)double to compareCompares the two specified |
| public static double[] | Returns: a single array containing all the values from the source arrays, in orderzero or more arrays)double arraysReturns the values from each provided array combined into a single array. |
| public static double | constrainToRange(double
the value, double double value to constrainthe lower bound (inclusive) of the range to constrain min, double value tothe upper bound (inclusive) of the range to constrain max)value toReturns the value nearest to |
| public static boolean | Returns: true if array[i] == target for some value of ian array of array, double double values, possibly emptya primitive target)double valueReturns |
| public static double[] | Returns: an array containing the values ofarray, with guaranteed minimum length minLengththe source array array, int the minimum length the returned array must guarantee minLength, int an extra amount to "grow" the array by if growth is necessary padding)Returns an array containing the same values as |
| private static Pattern | |
| public static int | Returns: a hash code for the valuea primitive value)double valueReturns a hash code for |
| public static int | Returns: the least indexi for which array[i] == target, or -1 if no
such index exists.an array of array, double double values, possibly emptya primitive target)double valueReturns the index of the first appearance of the value |
| private static int | |
| public static int | indexOf(double[]
the array to search for the sequence array, double[] targetthe array to search for as a sub-sequence of target)arrayReturns the start position of the first occurrence of the specified |
| public static boolean | |
| public static String | join(String
the text that should appear between consecutive values in the resulting string
(but not at the start or end) separator, double... an array of array)double values, possibly emptyReturns a string containing the supplied |
| public static int | Returns: the greatest indexi for which array[i] == target, or -1 if no
such index exists.an array of array, double double values, possibly emptya primitive target)double valueReturns the index of the last appearance of the value |
| private static int | |
| public static Comparator | |
| public static double | Returns: the value present inarray that is greater than or equal to every other value
in the arraya nonempty array of array)double valuesReturns the greatest value present in |
| public static double | Returns: the value present inarray that is less than or equal to every other value in
the arraya nonempty array of array)double valuesReturns the least value present in |
| public static void | |
| public static void | reverse(double[] array, int fromIndex, int toIndex)
Reverses the elements of |
| public static void | rotate(double[] array, int distance)
Performs a right rotation of |
| public static void | rotate(double[] array, int distance, int fromIndex, int toIndex)
Performs a right rotation of |
| public static void | |
| public static void | sortDescending(double[] array, int fromIndex, int toIndex)
Sorts the elements of |
| public static Converter | stringConverter()
Returns a serializable converter object that converts between strings and doubles using |
| public static double[] | Returns: an array containing the same values ascollection, in the same order, converted
to primitivesa collection of collection)Number instancesReturns an array containing each value of |
| public static Double |