public boolean contains( long o ) { synchronized( mutex ) { return c.contains( o ); } } public long[] toArray() {
public void clear() { synchronized( mutex ) { c.clear(); } } public String toString() {
public boolean isEmpty() { synchronized( mutex ) { return c.isEmpty(); } } public boolean contains( long o ) {
/** {@inheritDoc} */ public boolean removeAll( TLongCollection collection ) { boolean changed = false; TLongIterator iter = collection.iterator(); while ( iter.hasNext() ) { long element = iter.next(); if ( remove( element ) ) { changed = true; } } return changed; }
public int size() { synchronized( mutex ) { return c.size(); } } public boolean isEmpty() {
public boolean containsAll( TLongCollection coll ) { synchronized( mutex ) { return c.containsAll( coll );} } public boolean containsAll( long[] array ) {
public boolean addAll( Collection<? extends Long> coll ) { synchronized( mutex ) { return c.addAll( coll ); } } public boolean addAll( TLongCollection coll ) {
public boolean forEach( TLongProcedure procedure ) { synchronized( mutex ) { return c.forEach( procedure ); } }
public boolean remove( long o ) { synchronized( mutex ) { return c.remove( o ); } }
public boolean add( long e ) { synchronized (mutex ) { return c.add( e ); } } public boolean remove( long o ) {
/** {@inheritDoc} */ public boolean containsAll( TLongCollection collection ) { TLongIterator iter = collection.iterator(); while ( iter.hasNext() ) { if ( ! TLongDoubleHashMap.this.containsKey( iter.next() ) ) { return false; } } return true; }
public int size() { return c.size(); } public boolean isEmpty() { return c.isEmpty(); }
public boolean containsAll( Collection<?> coll ) { synchronized( mutex ) { return c.containsAll( coll );} } public boolean containsAll( TLongCollection coll ) {
public boolean addAll( TLongCollection coll ) { synchronized( mutex ) { return c.addAll( coll ); } } public boolean addAll( long[] array ) {
public boolean forEach( TLongProcedure procedure ) { return c.forEach( procedure ); }
@Override public boolean remove( long o ) { synchronized( mutex ) { return c.remove( o ); } }
@Override public boolean add( long e ) { synchronized (mutex ) { return c.add( e ); } } @Override
public boolean contains( long o ) { return c.contains( o ); } public long[] toArray() { return c.toArray(); }
/** {@inheritDoc} */ public boolean containsAll( TLongCollection collection ) { TLongIterator iter = collection.iterator(); while ( iter.hasNext() ) { if ( ! TLongCharHashMap.this.containsKey( iter.next() ) ) { return false; } } return true; }
/** * Creates a new <code>TLongArrayList</code> instance that contains * a copy of the collection passed to us. * * @param collection the collection to copy */ public TLongArrayList ( TLongCollection collection ) { this( collection.size() ); addAll( collection ); }