private static List < WComponent > copyChildren ( final List < WComponent > children ) { ArrayList < WComponent > copy ; if ( children == null ) { copy = new ArrayList <> ( 1 ) ; } else { copy = new ArrayList <> ( children ) ; } return copy ; }
Creates a copy of the given list of components .