package at.yawk.numaec;
import org.eclipse.collections.api.block.function.primitive.IntFunction;
import org.eclipse.collections.api.block.function.primitive.DoubleFunction;
import org.eclipse.collections.api.factory.map.primitive.MutableDoubleIntMapFactory;
import org.eclipse.collections.api.map.primitive.MutableDoubleIntMap;
import org.eclipse.collections.api.map.primitive.DoubleIntMap;
public interface MutableDoubleIntBufferMapFactory extends MutableDoubleIntMapFactory {
@Override
MutableDoubleIntBufferMap empty();
@Override
default MutableDoubleIntBufferMap of() {
return empty();
}
@Override
default MutableDoubleIntBufferMap with() {
return empty();
}
@Override
MutableDoubleIntBufferMap ofInitialCapacity(int capacity);
@Override
default MutableDoubleIntBufferMap withInitialCapacity(int capacity) {
return ofInitialCapacity(capacity);
}
@Override
MutableDoubleIntBufferMap ofAll(DoubleIntMap map);
@Override
default MutableDoubleIntBufferMap withAll(DoubleIntMap map) {
return ofAll(map);
}
@Override
default <T> MutableDoubleIntMap from(
Iterable<T> iterable, DoubleFunction<? super T> keyFunction, IntFunction<? super T> valueFunction
) {
MutableDoubleIntBufferMap n = empty();
for (T t : iterable) {
n.put(keyFunction.doubleValueOf(t), valueFunction.intValueOf(t));
}
return n;
}
}