
io.activej.serializer.stream.SizedCollectorKV Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of activej-serializer Show documentation
Show all versions of activej-serializer Show documentation
Extremely fast and space-efficient serializers. Implemented using bytecode engineering.
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