Code example for LinkedList

Methods: addLastsize

0
        mLocks.addLast(lock);
        return mLocks.size() - 1;
    } 
 
    public int writeContext(LockingContext context) {
        mLockingContexts.addLast(context);
        return mLockingContexts.size() - 1;
    } 
 
    public Lock readLock(int id) {
        return mLocks.get(id);
    } 
 
    public LockingContext readContext(int id) {
        return mLockingContexts.get(id);
    } 
} 
Contextual code suggestions in your IDE  Get Codota for Java