You are provided with the backbone of the ListMultiplicator class which has a method that takes a list and repeats its contents a specified number of times. The method should change the original list contents.
Your task is to add an implementation to the method without changing its signature.
It is guaranteed that:
- the list is not null
- n equals or is greater than zero
n stands for the number of times the original list is repeated in the result. In case n equals zero, the resulting list should be empty.
For example, if n equals 2 and the original list is:
[1, 2, 3]
the result should be:
[1, 2, 3, 1, 2, 3]