/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */
package doublex.lib.lockableContainers;

/**
 *
 * @author DoubleX
 * @param <C>
 * @param <K>
 */
public final class SyncLockableContainer<C, K> implements IContainable<C> {

    private final IContainable<C> mLockableContainer;

    public SyncLockableContainer(final IContainable<C> lockableContainer) {
        mLockableContainer = lockableContainer;
    }

    @Override
    public final synchronized void tryPutContents(final C contents) {
        mLockableContainer.tryPutContents(contents);
    }

    @Override
    public final synchronized C triedTakenContents() {
        return mLockableContainer.triedTakenContents();
    }
    
}

@@ -263,22 +263,8 @@
 %3CC%3E%0A
- * @param %3CK%3E%0A
  */%0A
@@ -309,11 +309,8 @@
 er%3CC
-, K
 %3E im
@@ -372,33 +372,27 @@
 ble%3CC%3E m
-Lockable
 Contain
+abl
 e
-r
 ;%0A%0A    p
@@ -441,33 +441,27 @@
 able%3CC%3E 
-lockableC
+c
 ontain
+abl
 e
-r
 ) %7B%0A    
@@ -469,45 +469,33 @@
    m
-LockableContainer = lockableC
+Containable = c
 ontain
+abl
 e
-r
 ;%0A  
@@ -592,33 +592,27 @@
        m
-Lockable
 Contain
+abl
 e
-r
 .tryPutC
@@ -722,33 +722,27 @@
 return m
-Lockable
 Contain
+abl
 e
-r
 .triedTa
@@ -762,15 +762,11 @@
 ;%0A    %7D%0A
-    
 %0A%7D%0A

Update SyncLockableContainer.java