Adds a list of point with only numbers.

@param values
the number values to add.

@return a PointSeries object with the new points added to it
765032
public PointSeries addNumbers(final List<Number> values) {
		for (Number number : values) {
			addNumberPoint(number);
		}
		return this;
	}
62169
@SuppressWarnings({ "rawtypes", "unchecked" })
	public boolean addAll(Collection<? extends T> values)
	{
		boolean wasAllAdded = true;
		for (Iterator iterator = values.iterator(); iterator.hasNext();)
		{
			if(!add((T)iterator.next()))
				wasAllAdded = false;
			
		}
		
		return wasAllAdded;
	}
992814
private function setValues($values)
    {

        $numbers = Array();
        foreach ($values as $key => $val) {

            $value = new \stdClass();
            $value->label = trim($key);

            if (!is_numeric($val)) {
                $val = null;
            }

            $value->value = $val;
            $this->values[] = $value;
            $numbers[] = $val;
        }
        $min_max = Array();
        foreach ($numbers as $number) {
            if (!is_null($number)) {
                array_push($min_max, $number);
            }
        }
        $this->min = min($min_max);
        $this->max = max($min_max);

        $this->total_values = count($numbers);

        $separation_dist = (($this->graph_width - 40) / $this->total_values);
        $i = 0;

        $this->points = Array();

        foreach ($this->values as $value) {
            $point = new \stdClass();
            $point->x = ($i * $separation_dist) + $this->axis_offset + 40;
            $point->y = $this->plotValue($value->value);
            $point->label = $value->label;
            $point->value = $value->value;
            $this->points[] = $point;
            $i++;
        }

        return $this->points;
    }
701590
public ListOrdersResult withOrders(Order... values) {
        List<Order> list = getOrders();
        for (Order value : values) {
            list.add(value);
        }
        return this;
    }
119179
public Option xAxis(Axis... values) {
        if (values == null || values.length == 0) {
            return this;
        }
        if (this.xAxis().size() == 2) {
            throw new RuntimeException("xAxis已经存在2个，无法继续添加!");
        }
        if (this.xAxis().size() + values.length > 2) {
            throw new RuntimeException("添加的xAxis超出了最大允许的范围:2!");
        }
        this.xAxis().addAll(Arrays.asList(values));
        return this;
    }
180413
@JsonIgnore
    public void setPoints(int[] points) {
        this.points = new ArrayList<>();
        for (int i = 0; i < points.length; i++) {
            this.points.add(points[i]);
        }
    }
667513
public void add(IntArrayList values) {
        ensureCapacity(size + values.size);
        for (int i=0; i<values.size; i++) {
            this.add(values.elements[i]);
        }
    }
1088831
@Override
	public void add(Collection<Object> values) {
		for(Object value : values)
			addOne(value);
	}
676386
public Box fromPoints (IVector3... points) {
        setToEmpty();
        for (IVector3 point : points) {
            addLocal(point);
        }
        return this;
    }
492800
public JSONNavi<T> add(Object... values) {
		array();
		if (failure)
			return this;
		List<Object> list = a(current);
		for (Object o : values)
			list.add(o);
		return this;
	}
1162091
public static JsonArray array(int... values) {
    if (values == null) {
      throw new NullPointerException(VALUES_IS_NULL);
    }
    JsonArray array = new JsonArray();
    for (int value : values) {
      array.add(value);
    }
    return array;
  }
1044201
public T value(Object... values) {
        if (values == null || values.length == 0) {
            return (T) this;
        }
        if (this.value == null) {
            this.value = new ArrayList<Object>(values.length);
        }
        if (this.value instanceof List) {
            ((List) this.value).addAll(Arrays.asList(values));
        }
        return (T) this;
    }
1001576
public Graph links(Link... values) {
        if (values == null || values.length == 0) {
            return this;
        }
        this.links().addAll(Arrays.asList(values));
        return this;
    }
776712
public static <E> List<E> newArrayList(E... values) {
    List<E> list = new ArrayList<E>(values.length);
    for (E e : values) {
      list.add(e);
    }
    return list;
  }
574213
public void add(ByteArrayList values) {
        ensureCapacity(size + values.size);
        for (int i=0; i<values.size; i++) {
            this.add(values.elements[i]);
        }
    }
740261
public static Long sum(Iterable<Integer> values) {
    long ret = 0;
    for (final int x : values) {
      ret += x;
    }
    return ret;
  }
672273
@Override
    public T data(Object... values) {
        if (values == null || values.length == 0) {
            return (T) this;
        }
        for (Object value : values) {
            this.data().add(value);
        }
        return (T) this;
    }