/*
 * 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.locks;

/**
 *
 * @author DoubleX
 * @param <K>
 */
public interface ILocks<K> {

    ILockable<K> lock(final String key);

    boolean isLocked();

    void tryPutLock(final String key, final ILockable<K> lock);

    ILockable<K> triedTakenLock(final String key);

}

@@ -284,33 +284,35 @@
  %7B%0A%0A    
-ILockable%3CK%3E lock
+boolean containsKey
 (final S
@@ -345,24 +345,66 @@
 sLocked();%0A%0A
+    ILockable%3CK%3E lock(final String key);%0A%0A
     void try
@@ -453,16 +453,17 @@
 K%3E lock)
+ 
 ;%0A%0A    I

Update ILocks.java