src/main/java/com/workplacesystems/utilsj/collections/decorators/SynchronizedCollection.java
public boolean add(final E object) {
        Boolean ret = SyncUtils.synchronizeWrite(lock, new Callback<Boolean>() {
            @Override
            protected void doAction() {
                _return(collection.add(object) ? Boolean.TRUE : Boolean.FALSE);
            }
        });
        return ret.booleanValue();
    }
public boolean add(final E object) {
        Boolean ret = SyncUtils.synchronizeWrite(lock, new Callback<Boolean>() {
            @Override
            protected void doAction() {
                _return(collection.add(object) ? Boolean.TRUE : Boolean.FALSE);
            }
        });
        return ret.booleanValue();
    }
public boolean add ( final E object ) { Boolean ret = SyncUtils . synchronizeWrite ( lock , new Callback < Boolean > ( ) { @ Override protected void doAction ( ) { _return ( collection . add ( object ) ? Boolean . TRUE : Boolean . FALSE ) ; } } ) ; return ret . booleanValue ( ) ; }
-----------------------------------------------------------------------
-----------------------------------------------------------------------