/** * Returns a list which is a concatenation of <code>times</code> times the receiver. * @param times the number of times the receiver shall be copied. */ public ObjectArrayList times(int times) { ObjectArrayList newList = new ObjectArrayList(times*size); for (int i=times; --i >= 0; ) { newList.addAllOfFromTo(this,0,size()-1); } return newList; } /**
/** * Returns a list which is a concatenation of <code>times</code> times the receiver. * @param times the number of times the receiver shall be copied. */ public ObjectArrayList times(int times) { ObjectArrayList newList = new ObjectArrayList(times*size); for (int i=times; --i >= 0; ) { newList.addAllOfFromTo(this,0,size()-1); } return newList; } /**
/** * Returns a list which is a concatenation of <code>times</code> times the * receiver. * * @param times * the number of times the receiver shall be copied. */ public ObjectArrayList times(int times) { ObjectArrayList newList = new ObjectArrayList(times * size); for (int i = times; --i >= 0;) { newList.addAllOfFromTo(this, 0, size() - 1); } return newList; }