public int size() { synchronized( mutex ) { return c.size(); } } public boolean isEmpty() {
public int size() { return c.size(); } public boolean isEmpty() { return c.isEmpty(); }
/** * Creates a new <code>TByteArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TByteArrayList ( TByteCollection collection ) { this( collection.size() ); addAll( collection ); }
/** * Creates a new <code>TByteHashSet</code> instance that is a copy * of the existing set. * * @param collection a <tt>TByteSet</tt> that will be duplicated. */ public TByteHashSet( TByteCollection collection ) { this( Math.max( collection.size(), DEFAULT_CAPACITY ) ); if ( collection instanceof TByteHashSet ) { TByteHashSet hashset = ( TByteHashSet ) collection; this._loadFactor = hashset._loadFactor; this.no_entry_value = hashset.no_entry_value; //noinspection RedundantCast if ( this.no_entry_value != ( byte ) 0 ) { Arrays.fill( _set, this.no_entry_value ); } setUp( (int) Math.ceil( DEFAULT_CAPACITY / _loadFactor ) ); } addAll( collection ); }
public int size() { synchronized( mutex ) { return c.size(); } } public boolean isEmpty() {
@Override public int size() { synchronized( mutex ) { return c.size(); } } @Override
public int size() { synchronized( mutex ) { return c.size(); } } public boolean isEmpty() {
public int size() { synchronized( mutex ) { return c.size(); } } public boolean isEmpty() {
public int size() { return c.size(); } public boolean isEmpty() { return c.isEmpty(); }
@Override public int size() { return c.size(); } @Override
public int size() { return c.size(); } public boolean isEmpty() { return c.isEmpty(); }
public int size() { return c.size(); } public boolean isEmpty() { return c.isEmpty(); }
/** * Creates a new <code>TByteArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TByteArrayList ( TByteCollection collection ) { this( collection.size() ); addAll( collection ); }
/** * Creates a new <code>TByteArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TByteArrayList ( TByteCollection collection ) { this( collection.size() ); addAll( collection ); }
/** * Creates a new <code>TByteArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TByteArrayList ( TByteCollection collection ) { this( collection.size() ); addAll( collection ); }
/** * Creates a new <code>TByteArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TByteArrayList ( TByteCollection collection ) { this( collection.size() ); addAll( collection ); }
/** * Creates a new <code>TByteHashSet</code> instance that is a copy * of the existing set. * * @param collection a <tt>TByteSet</tt> that will be duplicated. */ public TByteHashSet( TByteCollection collection ) { this( Math.max( collection.size(), DEFAULT_CAPACITY ) ); if ( collection instanceof TByteHashSet ) { TByteHashSet hashset = ( TByteHashSet ) collection; this._loadFactor = hashset._loadFactor; this.no_entry_value = hashset.no_entry_value; //noinspection RedundantCast if ( this.no_entry_value != ( byte ) 0 ) { Arrays.fill( _set, this.no_entry_value ); } setUp( (int) Math.ceil( DEFAULT_CAPACITY / _loadFactor ) ); } addAll( collection ); }
/** * Creates a new <code>TByteHashSet</code> instance that is a copy * of the existing set. * * @param collection a <tt>TByteSet</tt> that will be duplicated. */ public TByteHashSet( TByteCollection collection ) { this( Math.max( collection.size(), DEFAULT_CAPACITY ) ); if ( collection instanceof TByteHashSet ) { TByteHashSet hashset = ( TByteHashSet ) collection; this._loadFactor = hashset._loadFactor; this.no_entry_value = hashset.no_entry_value; //noinspection RedundantCast if ( this.no_entry_value != ( byte ) 0 ) { Arrays.fill( _set, this.no_entry_value ); } setUp( (int) Math.ceil( DEFAULT_CAPACITY / _loadFactor ) ); } addAll( collection ); }
/** * Creates a new <code>TByteHashSet</code> instance that is a copy * of the existing set. * * @param collection a <tt>TByteSet</tt> that will be duplicated. */ public TByteHashSet( TByteCollection collection ) { this( Math.max( collection.size(), DEFAULT_CAPACITY ) ); if ( collection instanceof TByteHashSet ) { TByteHashSet hashset = ( TByteHashSet ) collection; this._loadFactor = hashset._loadFactor; this.no_entry_value = hashset.no_entry_value; //noinspection RedundantCast if ( this.no_entry_value != ( byte ) 0 ) { Arrays.fill( _set, this.no_entry_value ); } setUp( (int) Math.ceil( DEFAULT_CAPACITY / _loadFactor ) ); } addAll( collection ); }
/** * Creates a new <code>TByteHashSet</code> instance that is a copy * of the existing set. * * @param collection a <tt>TByteSet</tt> that will be duplicated. */ public TByteHashSet( TByteCollection collection ) { this( Math.max( collection.size(), DEFAULT_CAPACITY ) ); if ( collection instanceof TByteHashSet ) { TByteHashSet hashset = ( TByteHashSet ) collection; this._loadFactor = hashset._loadFactor; this.no_entry_value = hashset.no_entry_value; //noinspection RedundantCast if ( this.no_entry_value != ( byte ) 0 ) { Arrays.fill( _set, this.no_entry_value ); } setUp( saturatedCast( fastCeil( DEFAULT_CAPACITY / (double) _loadFactor ) ) ); } addAll( collection ); }