Code example for ConcurrentLinkedQueue

Methods: addAll, clear

0
		} 
 
		public void addPoints(ArrayList<Point> newPoints) {
			// Clear all previous points, we need not to animate those points as 
			// the final position will be determined based on the last coordinate sent now 
			pendingList.clear();
			pendingList.addAll(newPoints);
		} 
 
		public void setInterpolator(Interpolator interpolator) {
			this.interpolator = interpolator;
		} 
 
		@Override 
		public void run() { 
			Point p;
			while (true) { 
				p = pendingList.poll();
				if (p != null) {
					if (x1 <= 0 && y1 <= 0) {
						x1 = p.x;