Sum { public static Combine.BinaryCombineIntegerFn ofIntegers() { return new SumIntegerFn(); } private  Sum(); static Combine.Globally<Integer, Integer> integersGlobally(); static Combine.PerKey<K, Integer, Integer> integersPerKey(); static Combine.Globally<Long, Long> longsGlobally(); static Combine.PerKey<K, Long, Long> longsPerKey(); static Combine.Globally<Double, Double> doublesGlobally(); static Combine.PerKey<K, Double, Double> doublesPerKey(); static Combine.BinaryCombineIntegerFn ofIntegers(); static Combine.BinaryCombineDoubleFn ofDoubles(); static Combine.BinaryCombineLongFn ofLongs();  }
@Test public void testSumIntegerFn() { testCombineFn(Sum.ofIntegers(), Lists.newArrayList(1, 2, 3, 4), 10); }