public TDoubleIterator iterator() { return new TDoubleIterator() { TDoubleIterator i = c.iterator(); public boolean hasNext() { return i.hasNext(); } public double next() { return i.next(); } public void remove() { throw new UnsupportedOperationException(); } }; }
public boolean add( double e ) { synchronized (mutex ) { return c.add( e ); } } public boolean remove( double o ) {
public boolean addAll( Collection<? extends Double> coll ) { synchronized( mutex ) { return c.addAll( coll ); } } public boolean addAll( TDoubleCollection coll ) {
public boolean contains( double o ) { synchronized( mutex ) { return c.contains( o ); } } public double[] toArray() {
public boolean containsAll( Collection<?> coll ) { synchronized( mutex ) { return c.containsAll( coll );} } public boolean containsAll( TDoubleCollection coll ) {
public boolean isEmpty() { synchronized( mutex ) { return c.isEmpty(); } } public boolean contains( double o ) {
public boolean forEach( TDoubleProcedure procedure ) { synchronized( mutex ) { return c.forEach( procedure ); } }
public double getNoEntryValue() { return c.getNoEntryValue(); } public boolean forEach( TDoubleProcedure procedure ) { return c.forEach( procedure ); }
public void clear() { synchronized( mutex ) { c.clear(); } } public String toString() {
public boolean remove( double o ) { synchronized( mutex ) { return c.remove( o ); } }
/** {@inheritDoc} */ public boolean retainAll(TDoubleCollection collection) { boolean modified = false; TDoubleIterator iter = iterator(); while (iter.hasNext()) { if (!collection.contains(iter.next())) { iter.remove(); modified = true; } } return modified; }
public boolean containsAll( TDoubleCollection coll ) { synchronized( mutex ) { return c.containsAll( coll );} } public boolean containsAll( double[] array ) {
public boolean isEmpty() { return c.isEmpty(); } public boolean contains( double o ) { return c.contains( o ); }
public boolean forEach( TDoubleProcedure procedure ) { return c.forEach( procedure ); }
public double getNoEntryValue() { return c.getNoEntryValue(); } public boolean forEach( TDoubleProcedure procedure ) {
@Override public void clear() { synchronized( mutex ) { c.clear(); } } @Override
@Override public boolean remove( double o ) { synchronized( mutex ) { return c.remove( o ); } }
/** {@inheritDoc} */ public boolean containsAll( TDoubleCollection collection ) { TDoubleIterator iter = collection.iterator(); while ( iter.hasNext() ) { if ( ! TByteDoubleHashMap.this.containsValue( iter.next() ) ) { return false; } } return true; }
/** {@inheritDoc} */ public boolean removeAll(TDoubleCollection collection) { boolean modified = false; TDoubleIterator iter = iterator(); while (iter.hasNext()) { if (collection.contains(iter.next())) { iter.remove(); modified = true; } } return modified; }
public boolean containsAll( double[] array ) { synchronized( mutex ) { return c.containsAll( array );} }