/** * Wraps the value in an array of length 1. * * @param unit The unit of measure for the value to be returned. * @return The sequence of values represented by this parameter after conversion to type {@code * double} and conversion to {@code unit}. * @throws IllegalArgumentException if the specified unit is invalid for this parameter. */ public double[] doubleValueList(final Unit<?> unit) throws IllegalArgumentException { return new double[] {doubleValue(unit)}; }
/** * Wraps the value in an array of length 1. * * @return The sequence of values represented by this parameter. */ public double[] doubleValueList() { return new double[] {doubleValue()}; }