package at.yawk.numaec;
import org.eclipse.collections.api.block.function.primitive.IntFunction;
import org.eclipse.collections.api.block.function.primitive.CharFunction;
import org.eclipse.collections.api.factory.map.primitive.MutableCharIntMapFactory;
import org.eclipse.collections.api.map.primitive.MutableCharIntMap;
import org.eclipse.collections.api.map.primitive.CharIntMap;
public interface MutableCharIntBufferMapFactory extends MutableCharIntMapFactory {
@Override
MutableCharIntBufferMap empty();
@Override
default MutableCharIntBufferMap of() {
return empty();
}
@Override
default MutableCharIntBufferMap with() {
return empty();
}
@Override
MutableCharIntBufferMap ofInitialCapacity(int capacity);
@Override
default MutableCharIntBufferMap withInitialCapacity(int capacity) {
return ofInitialCapacity(capacity);
}
@Override
MutableCharIntBufferMap ofAll(CharIntMap map);
@Override
default MutableCharIntBufferMap withAll(CharIntMap map) {
return ofAll(map);
}
@Override
default <T> MutableCharIntMap from(
Iterable<T> iterable, CharFunction<? super T> keyFunction, IntFunction<? super T> valueFunction
) {
MutableCharIntBufferMap n = empty();
for (T t : iterable) {
n.put(keyFunction.charValueOf(t), valueFunction.intValueOf(t));
}
return n;
}
}