void (BiConsumer<? super K, ? super V> action) { if (k1 != null) { if (k2 != null) { if (k3 != null) { action.accept(k3, v3); } action.accept(k2, v2); } action.accept(k1, v1); } for (int i = 0; i < data.length; i += 2) { Object key = data[i]; if (key != null) { action.accept((K)key, (V)data[i + 1]); } } }