adds all elements of an array list to the list

@param ArrayList $arrayList
@return bool
358691
public function addAll(ArrayList $arrayList): bool {
        $added = false;
        foreach ($arrayList as $value) {
            $added |= $this->add($value);
        }
        return $added;
    }
1100495
public function addAll(array $elements)
    {
        if (is_array($elements)) {
            foreach ($elements as $element) {
                $this->add($element);
            }
        }
    }
585438
public function addAllArray(array $array): bool {
        $added = true;
        foreach ($array as $value) {
            $added &= $this->add($value);
        }
        return $added;
    }
297916
public function addCachedField($arFieldList)
    {
        if (empty($arFieldList)) {
            return;
        }

        if (empty($this->cached) || !is_array($this->cached)) {
            $this->cached = [];
        }

        if (is_string($arFieldList)) {
            $arFieldList = [$arFieldList];
        }

        $this->cached = array_merge($this->cached, $arFieldList);
        $this->cached = array_unique($this->cached);
    }
976057
protected function prepareList(array $list)
    {
        foreach ($list as &$item) {
            $item['fields'] = $this->getFieldValues($item['combination_id']);
        }

        return $list;
    }
226482
public function replaceAll(array $from_to) : ArrayList
    {
        $values = $this->_replaceAll($from_to);
        $this->setValues($values);
        return $this;
    }
888495
public function add($elements)
    {
        if (is_array($elements)) {
            foreach ($elements as $element) {
                $this->add($element);
            }
        } else {
            $this->collections->add($elements);
        }

        return $this;
    }
547550
public void addAll(StringArrayList vec) {
        int i;
        int max;

        max = vec.size();
        for (i = 0; i < max; i++) {
            add(vec.get(i));
        }
    }
1374144
public void add(LongArrayList values) {
        ensureCapacity(size + values.size);
        for (int i=0; i<values.size; i++) {
            this.add(values.elements[i]);
        }
    }
255547
protected function addToQueue($nodeList) {
    for ($i=sizeof($nodeList)-1; $i>=0; $i--) {
      if ($nodeList[$i] instanceof Node) {
        $this->nodeList[] = $nodeList[$i];
      }
    }
  }
750859
public function pushAll(array $items) : ArrayList
    {
        $values = $this->_pushAll($items);
        $this->setValues($values);
        return $this;
    }
585443
public function merge(CNabuDataObjectList $list)
    {
        $count = 0;

        if ($list->isFilled()) {
            $list->iterate(
                function ($key, $item) use ($count)
                {
                    if (!$this->containsKey($key)) {
                        $this->addItem($item);
                        $count++;
                    }

                    return true;
                }
            );
        } else {
            $this->list = $list->list;
            $this->secondary_indexes = $list->secondary_indexes;
            $count = is_array($list->list) ? count($list->list) : 0;
        }

        return $count;
    }
2182
public function appendList(array $data, $elementName, $nsPrefix = null, $nsUri = null)
    {
        if (null === $nsPrefix) {
            foreach ($data as $value) {
                $this->writeElement($elementName, $value);
            }
        } else {
            foreach ($data as $value) {
                $this->writeElementNS($nsPrefix, $elementName, $nsUri, $value);
            }
        }

        return true;
    }
493672
public function addList(PHPRtfLite_List $list)
    {
        $this->_items[] = $list;
        $list->_textIndent += $this->_textIndent;
        return $this;
    }
482666
public function insertScripts($list)
    {
        if (!is_array($list)) {
            $list = [$list];
        }
        $this->scripts = $list;
        return $this;
    }
667611
public function add($element)
    {
        if (!$this->contains($element)) {
            $hashIndex = $this->hashIndex($element);

            $this->_items[$hashIndex] = $element;
            $this->_iterator = null;
            return true;
        } else {
            // element already exist
            return false;
        }
    }
1287718
@Override
    public boolean addAll(Collection<? extends E> c) {
        for (E e : c) {
            discardingOffer(e);
        }
        return !c.isEmpty();
    }