public static MemorySize create(MemorySize...memorySizes)
  {
    if(memorySizes == null)
      return null;

    if(memorySizes.length == 0)
      return ZERO_BYTES;

    MemorySize res = memorySizes[0];

    for(int i = 1; i < memorySizes.length; i++)
    {
      MemorySize memorySize = memorySizes[i];
      if(memorySize != null)
        res = res.add(memorySize);
    }

    return res;
  }
public static MemorySize create(MemorySize...memorySizes)
  {
    if(memorySizes == null)
      return null;

    if(memorySizes.length == 0)
      return ZERO_BYTES;

    MemorySize res = memorySizes[0];

    for(int i = 1; i < memorySizes.length; i++)
    {
      MemorySize memorySize = memorySizes[i];
      if(memorySize != null)
        res = res.add(memorySize);
    }

    return res;
  }
public static MemorySize create ( MemorySize ... memorySizes ) { if ( memorySizes == null ) return null ; if ( memorySizes . length == 0 ) return ZERO_BYTES ; MemorySize res = memorySizes [ 0 ] ; for ( int i = 1 ; i < memorySizes . length ; i ++ ) { MemorySize memorySize = memorySizes [ i ] ; if ( memorySize != null ) res = res . add ( memorySize ) ; } return res ; }
Create a new instance of MemorySize by adding up the given
array of memorySizes

@param memorySizes
@return a new instance of MemorySize
Create a new instance of MemorySize by adding up the given array of memorySizes