Merges two Arrays. @param first The first Array. @param second The second Array. @param The type of both Arrays. @return a merged Array.
(T[] first, T[] second)
| 656 | * @return a merged Array. |
| 657 | */ |
| 658 | public static <T> T[] concat(T[] first, T[] second) { |
| 659 | T[] result = Arrays.copyOf(first, first.length + second.length); |
| 660 | System.arraycopy(second, 0, result, first.length, second.length); |
| 661 | return result; |
| 662 | } |
| 663 | |
| 664 | public static <T> T[] asArray(T... array) { |
| 665 | return array; |
no outgoing calls
no test coverage detected