Scalar { public void set(Object[] row, T value) { row[position] = value; } protected  Scalar(int position); static Scalar<T> at(int position); static Scalar<T> at(E e); T get(Object[] row); void set(Object[] row, T value); T get(RowProxy row); void set(RowBuilder row, T value); Hasher hasher(); Aggregator<T> first(); Aggregator<Long> countLong(); Aggregator<Integer> countInt(); Aggregator<Double> averageDouble(); Aggregator<Double> medianDouble(); Aggregator<Long> sumLong(); Aggregator<Double> sumDouble(); int getPosition();  }
@Test public void testSet() { Scalar<Integer> S = Scalar.at(2); Object[] a = new Object[4]; S.set(a, 6); assertEquals(Integer.valueOf(6), a[2]); }