Takes an array of values and converts it into a list of `DataPoint`s with the same
timestamp.

@param values Array of values to be converted
@param ts     Timestamp to use.
@return A List of DataPoints with the same timestamp.
545112
public static List<DataPoint> parse(int[] values, long ts) {
        List<DataPoint> ret = new ArrayList<DataPoint>(values.length);
        for (int v : values) {
            ret.add(new DataPoint(ts, v));
        }
        return ret;
    }
1044964
protected static DataBuffer createValueBuffer(float[] values) {
        checkNotNull(values);
        if (values.length == 0){
            return Nd4j.createBuffer(1);
        }
        return Nd4j.createBuffer(values);
    }
1331402
public static <T> List<T> valuesToList(Map<?, T> map) {
        return new ArrayList<>(map.values());
    }
1245889
@SafeVarargs
	public static <T> List<T> list(boolean isLinked, T... values) {
		if (ArrayUtil.isEmpty(values)) {
			return list(isLinked);
		}
		List<T> arrayList = isLinked ? new LinkedList<T>() : new ArrayList<T>(values.length);
		for (T t : values) {
			arrayList.add(t);
		}
		return arrayList;
	}
162499
public static Long[] wrap(long... values) {
		if (null == values) {
			return null;
		}
		final int length = values.length;
		if (0 == length) {
			return new Long[0];
		}

		final Long[] array = new Long[length];
		for (int i = 0; i < length; i++) {
			array[i] = Long.valueOf(values[i]);
		}
		return array;
	}
763402
public static <T> List<T> getAll(Collection<Option<T>> values) {
    List<T> results = CollectUtils.newArrayList(values.size());
    for (Option<T> op : values) {
      if (op.isDefined()) results.add(op.get());
    }
    return results;
  }
435472
protected Object[] columnValues(Object[] value) {
        Object[] res = new Object[value.length];
        for (int i = 0; i < value.length; i++) {
            res[i] = columnValue(value[i]);
        }
        return res;
    }
263573
public String[] buildColumnsAs(List<TColumn> columns, String[] values) {

		String[] columnsArray = buildColumnsArray(columns);

		return buildColumnsAs(columnsArray, values);
	}
528273
public Legend data(Object... values) {
        if (values == null || values.length == 0) {
            return this;
        }
        this.data().addAll(Arrays.asList(values));
        return this;
    }
335811
public List<T> values() {
        List<T> result = new ArrayList<T>();
        for (Iterator<T> itr = iterator(); itr.hasNext(); ) {
            result.add(itr.next());
        }
        return result;
    }
777947
public DataPointLongBean addDataPoint(Date timestamp, long value, Map<String, String> tags) {
        DataPointLongBean point = new DataPointLongBean(timestamp, value);
        for (Entry<String, String> entry : tags.entrySet()) {
            point.addTag(entry.getKey(), entry.getValue());
        }
        dataPoints.add(point);
        return point;
    }
484820
public static Integer[] wrap(int... values) {
		if (null == values) {
			return null;
		}
		final int length = values.length;
		if (0 == length) {
			return new Integer[0];
		}

		final Integer[] array = new Integer[length];
		for (int i = 0; i < length; i++) {
			array[i] = Integer.valueOf(values[i]);
		}
		return array;
	}
1131336
public static List<Double> toList(List<Pair> xyValues) {
        List<Double> result = new ArrayList<Double>(xyValues.size() * 2);
        for (Pair pair : xyValues) {
            result.add(pair.getX());
            result.add(pair.getY());
        }
        return result;
    }
701161
@SafeVarargs
  static <T> String sqlArgumentList(T... values) {
    StringBuilder sb = new StringBuilder();
    if (values.length != 0) {
      sb.append(values[0]);
      for (int i=1; i < values.length; i++) {
        sb.append(',').append(' ').append(values[i]);
      }
    }
    return sb.toString();
  }
1107394
DataPoints shift(final DataPoints points, final long timeshift) {
    // TODO(cl) - Using an array as the size function may not return the exact
    // results and we should figure a way to avoid copying data anyway.
    final List<DataPoint> dps = new ArrayList<DataPoint>();

    for (DataPoint pt : points) {
      dps.add(shift(pt, timeshift));
    }

    final DataPoint[] results = new DataPoint[dps.size()];
    dps.toArray(results);
    return new PostAggregatedDataPoints(points, results);
  }
1214397
public static java.util.Collection<?> values(Struct sct) {
	ArrayList<Object> arr = new ArrayList<Object>();
	// Key[] keys = sct.keys();
	Iterator<Object> it = sct.valueIterator();
	while (it.hasNext()) {
	    arr.add(it.next());
	}
	return arr;
    }
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;
    }