/*
 * 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 final class SyncCountedLock<K> implements ILockable<K> {

    private final CountedLock<K> mLock;

    public SyncCountedLock(final CountedLock<K> lock) {
        mLock = lock;
    }

    @Override
    public boolean isLocked() {
        return mLock.isLocked();
    }

    @Override
    public void lock() {
        mLock.lock();
    }

    @Override
    public synchronized void tryUnlock(K key) {
        mLock.tryUnlock(key);
    }

}

@@ -203,16 +203,116 @@
 ib.locks
+.lock;%0A%0Aimport doublex.lib.locks.ILockable;%0Aimport doublex.lib.locks.exceptions.KeyMismatchException
 ;%0A%0A/**%0A 
@@ -369,31 +369,24 @@
 l class Sync
-Counted
 Lock%3CK%3E impl
@@ -422,35 +422,33 @@
 ivate final 
-CountedLock
+ILockable
 %3CK%3E mLock;%0A%0A
@@ -462,23 +462,16 @@
 lic Sync
-Counted
 Lock(fin
@@ -477,19 +477,17 @@
 nal 
-CountedLock
+ILockable
 %3CK%3E 
@@ -734,14 +734,48 @@
 ock(
-K key)
+final K key) throws KeyMismatchException
  %7B%0A 

Update SyncLock.java