/** * Creates a new tree set using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. */ public ByteRBTreeSet(final Iterator<?> i) { this(ByteIterators.asByteIterator(i)); } /**
/** * Creates a new tree set using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. */ public ByteAVLTreeSet(final Iterator<?> i) { this(ByteIterators.asByteIterator(i)); } /**
/** * Creates a new hash set using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. * @param f * the load factor. */ public ByteOpenHashSet(final Iterator<?> i, final float f) { this(ByteIterators.asByteIterator(i), f); } /**
/** * Creates a new hash set with {@link Hash#DEFAULT_LOAD_FACTOR} as load factor * using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. */ public ByteOpenHashSet(final Iterator<?> i) { this(ByteIterators.asByteIterator(i)); } /**
/** * Creates a new hash set using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. * @param f * the load factor. */ public ByteLinkedOpenHashSet(final Iterator<?> i, final float f) { this(ByteIterators.asByteIterator(i), f); } /**
/** * Creates a new hash set with {@link Hash#DEFAULT_LOAD_FACTOR} as load factor * using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. */ public ByteLinkedOpenHashSet(final Iterator<?> i) { this(ByteIterators.asByteIterator(i)); } /**
/** * Creates a new hash set with {@link Hash#DEFAULT_LOAD_FACTOR} as load factor * using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. * @param strategy * the strategy. */ public ByteOpenCustomHashSet(final Iterator<?> i, final it.unimi.dsi.fastutil.bytes.ByteHash.Strategy strategy) { this(ByteIterators.asByteIterator(i), strategy); } /**
/** * Creates a new hash set using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. * @param f * the load factor. * @param strategy * the strategy. */ public ByteOpenCustomHashSet(final Iterator<?> i, final float f, final it.unimi.dsi.fastutil.bytes.ByteHash.Strategy strategy) { this(ByteIterators.asByteIterator(i), f, strategy); } /**
/** * Creates a new hash set with {@link Hash#DEFAULT_LOAD_FACTOR} as load factor * using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. * @param strategy * the strategy. */ public ByteLinkedOpenCustomHashSet(final Iterator<?> i, final it.unimi.dsi.fastutil.bytes.ByteHash.Strategy strategy) { this(ByteIterators.asByteIterator(i), strategy); } /**
/** * Creates a new hash set using elements provided by an iterator. * * @param i * an iterator whose elements will fill the set. * @param f * the load factor. * @param strategy * the strategy. */ public ByteLinkedOpenCustomHashSet(final Iterator<?> i, final float f, final it.unimi.dsi.fastutil.bytes.ByteHash.Strategy strategy) { this(ByteIterators.asByteIterator(i), f, strategy); } /**
/** * Creates a new array list and fills it with a given collection. * * @param c * a collection that will be used to fill the array list. */ public ByteArrayList(final Collection<? extends Byte> c) { this(c.size()); size = ByteIterators.unwrap(ByteIterators.asByteIterator(c.iterator()), a); } /**