예제 #1
0
 @Override
 public void each(VectorProcedure procedure) {
   for (int i = 0; i < length; i++) {
     procedure.apply(i, get(i));
   }
 }
예제 #2
0
 @Override
 public void each(VectorProcedure procedure) {
   for (int i = 0; i < cardinality; i++) {
     procedure.apply(indices[i], values[i]);
   }
 }