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