/** * initializes the Object set of this hash table. * * @param initialCapacity an <code>int</code> value * @return an <code>int</code> value */ @Override public int setUp(int initialCapacity) { order = new TIntArrayList(initialCapacity) { /** * Grow the internal array as needed to accommodate the specified number of elements. * The size of the array bytes on each resize unless capacity requires more than twice * the current capacity. */ @Override public void ensureCapacity(int capacity) { if (capacity > _data.length) { int newCap = Math.max(_set.length, capacity); int[] tmp = new int[newCap]; System.arraycopy(_data, 0, tmp, 0, _data.length); _data = tmp; } } }; return super.setUp(initialCapacity); //To change body of overridden methods use File | Settings | File Templates. }
@SuppressWarnings({"unchecked"}) public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION byte version = in.readByte(); // NOTE: super was not written in version 0 if (version != 0) { super.readExternal(in); } // NUMBER OF ENTRIES int size = in.readInt(); setUp(size); // ENTRIES while (size-- > 0) { E val = (E) in.readObject(); add(val); } } } // THashSet
/** See {@link gnu.trove.set.hash.THashSet#setUp(int)} */ public int setUp(int initialCapacity) { return delegate.setUp(initialCapacity); }
/** See {@link gnu.trove.set.hash.THashSet#setUp(int)} */ public int setUp(int initialCapacity) { return delegate.setUp(initialCapacity); }
/** * initializes the Object set of this hash table. * * @param initialCapacity an <code>int</code> value * @return an <code>int</code> value */ @Override public int setUp(int initialCapacity) { order = new TIntArrayList(initialCapacity) { /** * Grow the internal array as needed to accommodate the specified number of elements. * The size of the array bytes on each resize unless capacity requires more than twice * the current capacity. */ @Override public void ensureCapacity(int capacity) { if (capacity > _data.length) { int newCap = Math.max(_set.length, capacity); int[] tmp = new int[newCap]; System.arraycopy(_data, 0, tmp, 0, _data.length); _data = tmp; } } }; return super.setUp(initialCapacity); //To change body of overridden methods use File | Settings | File Templates. }
/** * initializes the Object set of this hash table. * * @param initialCapacity an <code>int</code> value * @return an <code>int</code> value */ @Override public int setUp(int initialCapacity) { order = new TIntArrayList(initialCapacity) { /** * Grow the internal array as needed to accommodate the specified number of elements. * The size of the array bytes on each resize unless capacity requires more than twice * the current capacity. */ @Override public void ensureCapacity(int capacity) { if (capacity > _data.length) { int newCap = Math.max(_set.length, capacity); int[] tmp = new int[newCap]; System.arraycopy(_data, 0, tmp, 0, _data.length); _data = tmp; } } }; return super.setUp(initialCapacity); //To change body of overridden methods use File | Settings | File Templates. }
@SuppressWarnings({"unchecked"}) public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION byte version = in.readByte(); // NOTE: super was not written in version 0 if (version != 0) { super.readExternal(in); } // NUMBER OF ENTRIES int size = in.readInt(); setUp(size); // ENTRIES while (size-- > 0) { E val = (E) in.readObject(); add(val); } } } // THashSet
@Override @SuppressWarnings({"unchecked"}) public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION byte version = in.readByte(); // NOTE: super was not written in version 0 if (version != 0) { super.readExternal(in); } // NUMBER OF ENTRIES int size = in.readInt(); setUp(size); // ENTRIES while (size-- > 0) { E val = (E) in.readObject(); add(val); } } } // THashSet
@SuppressWarnings({"unchecked"}) public void readExternal(ObjectInput in) throws IOException, ClassNotFoundException { // VERSION byte version = in.readByte(); // NOTE: super was not written in version 0 if (version != 0) { super.readExternal(in); } // NUMBER OF ENTRIES int size = in.readInt(); setUp(size); // ENTRIES while (size-- > 0) { E val = (E) in.readObject(); add(val); } } } // THashSet
@SuppressWarnings({"unchecked"}) public void readExternal( ObjectInput in ) throws IOException, ClassNotFoundException { // VERSION byte version = in.readByte(); // NOTE: super was not written in version 0 if ( version != 0 ) { super.readExternal( in ); } // NUMBER OF ENTRIES int size = in.readInt(); setUp( size ); // ENTRIES while ( size-- > 0 ) { E val = (E) in.readObject(); add( val ); } } } // THashSet