com.github.fmjsjx.libcommon.collection.IntHashSet Maven / Gradle / Ivy
package com.github.fmjsjx.libcommon.collection;
import static io.netty.util.collection.IntObjectHashMap.DEFAULT_CAPACITY;
import static io.netty.util.collection.IntObjectHashMap.DEFAULT_LOAD_FACTOR;
import java.util.AbstractSet;
import java.util.Collection;
import java.util.Iterator;
import java.util.function.IntConsumer;
import java.util.stream.IntStream;
import java.util.stream.StreamSupport;
import io.netty.util.collection.IntObjectHashMap;
import io.netty.util.collection.IntObjectMap.PrimitiveEntry;
/**
* This class implements the {@link IntSet} interface, backed by a hash table
* (actually a {@link IntObjectHashMap} instance).
*/
public class IntHashSet extends AbstractSet implements IntSet {
static final Object PRESENT = new Object();
private final IntObjectHashMap
© 2015 - 2025 Weber Informatics LLC | Privacy Policy