/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, int value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, long value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, double value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use a null value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @return this array to allow for chaining methods */ default Array expand(int desiredSize) { return expand(desiredSize,Value.nullValue()); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, boolean value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, float value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, String value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, long value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, String value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, boolean value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, double value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, float value) { return expand(desiredSize,Value.create(value)); }
/** * If the current size of the array is smaller than the given size, expand it and use a null value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @return this array to allow for chaining methods */ default Array expand(int desiredSize) { return expand(desiredSize,Value.nullValue()); }
/** * If the current size of the array is smaller than the given size, expand it and use the supplied value for all new entries. * This method does nothing if the current size is larger than the supplied {@code desiredSize}. * * @param desiredSize the desired size of the array; may be negative * @param value the new value for any new entries * @return this array to allow for chaining methods */ default Array expand(int desiredSize, int value) { return expand(desiredSize,Value.create(value)); }