All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.github.grignaak.collections.CowHashSet Maven / Gradle / Ivy

There is a newer version: 1.0.0
Show newest version
package com.github.grignaak.collections;

public class CowHashSet extends AbstractMapBackedSet implements CowSet {
    protected final CowMap impl;

    public CowHashSet() {
        this(new CowHashMap<>());
    }

    private CowHashSet(CowMap impl) {
        this.impl = impl;
    }

    @Override
    protected CowMap backingMap() {
        return impl;
    }

    /**
     * {@inheritDoc}
     */
    @Override
    public CowHashSet fork() {
        return new CowHashSet<>(impl.fork());
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy