Ejemplo n.º 1
0
 @Override
 public <V, R extends MutableMultimap<V, T>> R groupBy(
     Function<? super T, ? extends V> function, R target) {
   this.forEach(MultimapPutProcedure.on(target, function));
   return target;
 }
Ejemplo n.º 2
0
 /** Implemented to avoid megamorphic call on castProcedure */
 private void batchGroupBy(int start, int end, MultimapPutProcedure<?, T> castProcedure) {
   for (int i = start; i < end; i++) {
     castProcedure.value(this.items[i]);
   }
 }