![JAR search and dependency download from the Maven repository](/logo.png)
com.github.grignaak.collections.CowHashSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of cow-collections Show documentation
Show all versions of cow-collections Show documentation
Copy-on-write collections for easy, thread-safe, immutability
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