/*
 * 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 ILockable<K> {

    boolean isLocked();

    void lock();

    void tryUnlock(final K key);

};

@@ -206,16 +206,75 @@
 locks;%0A%0A
+import doublex.lib.locks.exceptions.KeyMismatchException;%0A%0A
 /**%0A *%0A 
@@ -416,14 +416,42 @@
 l K key)
+ throws KeyMismatchException
 ;%0A%0A%7D;%0A

Update ILockable.java