com.github.fmjsjx.libcommon.collection.IntHashSet Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of libcommon-collection Show documentation
Show all versions of libcommon-collection Show documentation
A set of some common useful libraries.
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