io.tracee.ThreadLocalHashSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tracee-core Show documentation
Show all versions of tracee-core Show documentation
Please refer to https://github.com/tracee/tracee.
package io.tracee;
import java.util.HashSet;
import java.util.Set;
/**
* A thread local hash-set that will be copied to a child thread upon creation.
*/
public final class ThreadLocalHashSet extends InheritableThreadLocal> {
@Override
protected Set childValue(Set parentValue) {
return new HashSet(parentValue);
}
@Override
protected Set initialValue() {
return new HashSet();
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy