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

io.tracee.ThreadLocalHashSet Maven / Gradle / Ivy

There is a newer version: 1.2.0
Show newest version
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