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