package at.yawk.numaec;
import org.eclipse.collections.api.block.function.primitive.ByteFunction;
import org.eclipse.collections.api.block.function.primitive.CharFunction;
import org.eclipse.collections.api.factory.map.primitive.MutableCharByteMapFactory;
import org.eclipse.collections.api.map.primitive.MutableCharByteMap;
import org.eclipse.collections.api.map.primitive.CharByteMap;
public interface MutableCharByteBufferMapFactory extends MutableCharByteMapFactory {
@Override
MutableCharByteBufferMap empty();
@Override
default MutableCharByteBufferMap of() {
return empty();
}
@Override
default MutableCharByteBufferMap with() {
return empty();
}
@Override
MutableCharByteBufferMap ofInitialCapacity(int capacity);
@Override
default MutableCharByteBufferMap withInitialCapacity(int capacity) {
return ofInitialCapacity(capacity);
}
@Override
MutableCharByteBufferMap ofAll(CharByteMap map);
@Override
default MutableCharByteBufferMap withAll(CharByteMap map) {
return ofAll(map);
}
@Override
default <T> MutableCharByteMap from(
Iterable<T> iterable, CharFunction<? super T> keyFunction, ByteFunction<? super T> valueFunction
) {
MutableCharByteBufferMap n = empty();
for (T t : iterable) {
n.put(keyFunction.charValueOf(t), valueFunction.byteValueOf(t));
}
return n;
}
}