package at.yawk.numaec;
import org.eclipse.collections.api.block.function.primitive.ShortFunction;
import org.eclipse.collections.api.block.function.primitive.CharFunction;
import org.eclipse.collections.api.factory.map.primitive.MutableCharShortMapFactory;
import org.eclipse.collections.api.map.primitive.MutableCharShortMap;
import org.eclipse.collections.api.map.primitive.CharShortMap;
public interface MutableCharShortBufferMapFactory extends MutableCharShortMapFactory {
@Override
MutableCharShortBufferMap empty();
@Override
default MutableCharShortBufferMap of() {
return empty();
}
@Override
default MutableCharShortBufferMap with() {
return empty();
}
@Override
MutableCharShortBufferMap ofInitialCapacity(int capacity);
@Override
default MutableCharShortBufferMap withInitialCapacity(int capacity) {
return ofInitialCapacity(capacity);
}
@Override
MutableCharShortBufferMap ofAll(CharShortMap map);
@Override
default MutableCharShortBufferMap withAll(CharShortMap map) {
return ofAll(map);
}
@Override
default <T> MutableCharShortMap from(
Iterable<T> iterable, CharFunction<? super T> keyFunction, ShortFunction<? super T> valueFunction
) {
MutableCharShortBufferMap n = empty();
for (T t : iterable) {
n.put(keyFunction.charValueOf(t), valueFunction.shortValueOf(t));
}
return n;
}
}