/ 

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

 

  • class final publicMutableIntDoubleBTreeMapFactory
    • field final privateallocator: LargeByteBufferAllocator
    • field final privateconfig: BTreeConfig
    • method privateMutableIntDoubleBTreeMapFactory(LargeByteBufferAllocator, BTreeConfig): void
    • method final publicwithAllocator(LargeByteBufferAllocator): MutableIntDoubleBufferMapFactory
    • method final publicwithAllocatorAndConfig(LargeByteBufferAllocator, BTreeConfig): MutableIntDoubleBufferMapFactory
    • method publicempty(): MutableIntDoubleBufferMap
    • method publicofInitialCapacity(int): MutableIntDoubleBufferMap
    • method publicofAll(IntDoubleMap): MutableIntDoubleBufferMap
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.map.primitive.IntDoubleMap;

public final class MutableIntDoubleBTreeMapFactory implements MutableIntDoubleBufferMapFactory {
    private final LargeByteBufferAllocator allocator;
    private final BTreeConfig config;

    private MutableIntDoubleBTreeMapFactory(LargeByteBufferAllocator allocator, BTreeConfig config) {
        this.allocator = allocator;
        this.config = config;
    }

    public static MutableIntDoubleBufferMapFactory withAllocator(LargeByteBufferAllocator allocator) {
        return withAllocatorAndConfig(allocator, BTreeConfig.builder().build());
    }

    public static MutableIntDoubleBufferMapFactory withAllocatorAndConfig(
            LargeByteBufferAllocator allocator, BTreeConfig config
    ) {
        return new MutableIntDoubleBTreeMapFactory(allocator, config);
    }

    @Override
    public MutableIntDoubleBufferMap empty() {
        return new IntDoubleBTreeMap.Mutable(allocator, config);
    }

    @Override
    public MutableIntDoubleBufferMap ofInitialCapacity(int capacity) {
        return empty();
    }

    @Override
    public MutableIntDoubleBufferMap ofAll(IntDoubleMap map) {
        MutableIntDoubleBufferMap n = ofInitialCapacity(map.size());
        n.putAll(map);
        return n;
    }
}


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