public static < S > List < S > of ( List < ? extends S > left , List < ? extends S > right ) { List < S > list = new ArrayList < S > ( left . size ( ) + right . size ( ) ) ; list . addAll ( left ) ; list . addAll ( right ) ; return list ; }
Creates a list of a left and right list .