All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.activej.serializer.stream.SizedCollectorKV Maven / Gradle / Ivy

Go to download

Extremely fast and space-efficient serializers. Implemented using bytecode engineering.

There is a newer version: 6.0-rc2
Show newest version
package io.activej.serializer.stream;

public interface SizedCollectorKV {
	default R create0() {
		A acc = accumulator(0);
		return result(acc);
	}

	default R create1(K key, V value) {
		A acc = accumulator(1);
		accumulate(acc, 0, key, value);
		return result(acc);
	}

	A accumulator(int size);

	void accumulate(A accumulator, int index, K key, V value);

	R result(A accumulator);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy