/ 

at.yawk.numaec/ numa-eclipse-collections/ 0.2/ at/yawk/numaec/MutableCharCharBufferMapFactory.java

 

  • interface publicMutableCharCharBufferMapFactory
    • abstract method publicempty(): MutableCharCharBufferMap
    • method publicof(): MutableCharCharBufferMap
    • method publicwith(): MutableCharCharBufferMap
    • abstract method publicofInitialCapacity(int): MutableCharCharBufferMap
    • method publicwithInitialCapacity(int): MutableCharCharBufferMap
    • abstract method publicofAll(CharCharMap): MutableCharCharBufferMap
    • method publicwithAll(CharCharMap): MutableCharCharBufferMap
    • method publicfrom(Iterable<Object>, CharFunction<Object>, CharFunction<Object>): MutableCharCharMap
https://github.com/yawkat/numaec: NUMA-capable implementation of parts of eclipse-collections-api
  • Eclipse Public License - v 1.0
  • Jonas Konrad
package at.yawk.numaec;

import org.eclipse.collections.api.block.function.primitive.CharFunction;
import org.eclipse.collections.api.block.function.primitive.CharFunction;
import org.eclipse.collections.api.factory.map.primitive.MutableCharCharMapFactory;
import org.eclipse.collections.api.map.primitive.MutableCharCharMap;
import org.eclipse.collections.api.map.primitive.CharCharMap;

public interface MutableCharCharBufferMapFactory extends MutableCharCharMapFactory {
    @Override
    MutableCharCharBufferMap empty();

    @Override
    default MutableCharCharBufferMap of() {
        return empty();
    }

    @Override
    default MutableCharCharBufferMap with() {
        return empty();
    }

    @Override
    MutableCharCharBufferMap ofInitialCapacity(int capacity);

    @Override
    default MutableCharCharBufferMap withInitialCapacity(int capacity) {
        return ofInitialCapacity(capacity);
    }

    @Override
    MutableCharCharBufferMap ofAll(CharCharMap map);

    @Override
    default MutableCharCharBufferMap withAll(CharCharMap map) {
        return ofAll(map);
    }

    @Override
    default <T> MutableCharCharMap from(
            Iterable<T> iterable, CharFunction<? super T> keyFunction, CharFunction<? super T> valueFunction
    ) {
        MutableCharCharBufferMap n = empty();
        for (T t : iterable) {
            n.put(keyFunction.charValueOf(t), valueFunction.charValueOf(t));
        }
        return n;
    }
}


Missing a library or version you want to see? Open an issue!
Icon set and themes from IntelliJ Community