if (minimum > Integer.MAX_VALUE) minimum = Integer.MAX_VALUE; if (preferred > Integer.MAX_VALUE) preferred = Integer.MAX_VALUE; if (maximum > Integer.MAX_VALUE) maximum = Integer.MAX_VALUE; SizeRequirements result = new SizeRequirements((int) minimum, (int) preferred, (int) maximum, 0.5F);
  getTiledSizeRequirements(SizeRequirements[] children)  {    SizeRequirements result = new SizeRequirements();    for (int i = 0; i < children.length; i++)      {        result.minimum += children[i].minimum;        result.preferred += children[i].preferred;        result.maximum += children[i].maximum;      }    return result;  }