code: @Nonnull
    @ReturnsMutableCopy
    public static <ELEMENTTYPE> ELEMENTTYPE [] newArray (@Nonnegative final int nArraySize,
                                                         @Nonnull final ELEMENTTYPE aValue,
                                                         @Nonnull final Class <ELEMENTTYPE> aClass)
    {
      ValueEnforcer.isGE0 (nArraySize, "ArraySize");
      ValueEnforcer.notNull (aClass, "class");
  
      final ELEMENTTYPE [] ret = newArray (aClass, nArraySize);
      Arrays.fill (ret, aValue);
      return ret;
    }
docs: Create a new array with a predefined number of elements containing the
  passed value.
  
  @param <ELEMENTTYPE>
  The type of the array to be created.
  @param nArraySize
  The size of the array to be created.
  @param aValue
  The value to be set into each array element. May be
  <code>null</code>.
  @param aClass
  The value class. May not be <code>null</code>. Must be present in
  case the passed value is <code>null</code>.
  @return The created array filled with the given value.