copyOf

Creates a new TextElementList with a copy of the given list.

Return

a new list with copied elements

Parameters

elements

the list to copy

Throws