package at.yawk.numaec;
import org.eclipse.collections.api.block.function.primitive.ByteFunction;
import org.eclipse.collections.api.block.function.primitive.DoubleFunction;
import org.eclipse.collections.api.factory.map.primitive.MutableDoubleByteMapFactory;
import org.eclipse.collections.api.map.primitive.MutableDoubleByteMap;
import org.eclipse.collections.api.map.primitive.DoubleByteMap;
public interface MutableDoubleByteBufferMapFactory extends MutableDoubleByteMapFactory {
@Override
MutableDoubleByteBufferMap empty();
@Override
default MutableDoubleByteBufferMap of() {
return empty();
}
@Override
default MutableDoubleByteBufferMap with() {
return empty();
}
@Override
MutableDoubleByteBufferMap ofInitialCapacity(int capacity);
@Override
default MutableDoubleByteBufferMap withInitialCapacity(int capacity) {
return ofInitialCapacity(capacity);
}
@Override
MutableDoubleByteBufferMap ofAll(DoubleByteMap map);
@Override
default MutableDoubleByteBufferMap withAll(DoubleByteMap map) {
return ofAll(map);
}
@Override
default <T> MutableDoubleByteMap from(
Iterable<T> iterable, DoubleFunction<? super T> keyFunction, ByteFunction<? super T> valueFunction
) {
MutableDoubleByteBufferMap n = empty();
for (T t : iterable) {
n.put(keyFunction.doubleValueOf(t), valueFunction.byteValueOf(t));
}
return n;
}
}