@Override
	public int delete(int handle) throws DataStoreException
    {
        if (SAFE_MODE) checkHandle(handle);
        
        int previousHandle = previousEntry[handle];
        int nextHandle = nextEntry[handle];
        
        // Reconnect list
        if (previousHandle != -1)
            nextEntry[previousHandle] = nextHandle;
        if (nextHandle != -1)
            previousEntry[nextHandle] = previousHandle;
 
        // Clear data
        previousEntry[handle] = -1;
        nextEntry[handle] = -1;
        data[handle] = null;
        locks.clear(handle);
        
        if (firstEntry == handle)
            firstEntry = nextHandle;
        
        size--;
        
        return previousHandle;
    }
@ Override public int delete ( int handle ) throws DataStoreException { if ( SAFE_MODE ) checkHandle ( handle ) ; int previousHandle = previousEntry [ handle ] ; int nextHandle = nextEntry [ handle ] ; if ( previousHandle != - 1 ) nextEntry [ previousHandle ] = nextHandle ; if ( nextHandle != - 1 ) previousEntry [ nextHandle ] = previousHandle ; previousEntry [ handle ] = - 1 ; nextEntry [ handle ] = - 1 ; data [ handle ] = null ; locks . clear ( handle ) ; if ( firstEntry == handle ) firstEntry = nextHandle ; size -- ; return previousHandle ; }
/*
(non-Javadoc)
@see net.timewalker.ffmq4.utils.store.LinkedStore#delete(int)