public static BaseComponent compress(@NonNull BaseComponent[] components){
  if (components.length == 0) {
    throw new IllegalArgumentException("Array of components cannot be empty");
  }
  BaseComponent component=components[0];
  for (int i=1; i < components.length; i++) {
    component.addExtra(components[i]);
  }
  return component;
}

public static BaseComponent compress ( @ NonNull BaseComponent [ ] components ) { if ( components . length == 0 ) { throw new IllegalArgumentException ( "Array of components cannot be empty" ) ; } BaseComponent component = components [ 0 ] ; for ( int i = 1 ; i < components . length ; i ++ ) { component . addExtra ( components [ i ] ) ; } return component ; }
compresses an array of base components into one .
