All Downloads are FREE. Search and download functionalities are using the official Maven repository.

uk.ac.manchester.cs.owl.owlapi.concurrent.NoOpReadWriteLock Maven / Gradle / Ivy

There is a newer version: 5.5.1
Show newest version
package uk.ac.manchester.cs.owl.owlapi.concurrent;

import javax.annotation.Nonnull;
import java.io.Serializable;
import java.util.concurrent.locks.Lock;
import java.util.concurrent.locks.ReadWriteLock;

/**
 * Matthew Horridge
 * Stanford Center for Biomedical Informatics Research
 * 13/04/15
 */
public class NoOpReadWriteLock implements ReadWriteLock, Serializable {

    private static final NoOpLock NO_OP_LOCK = new NoOpLock();

    @Override
    @Nonnull
    public Lock readLock() {
        return NO_OP_LOCK;
    }

    @Override
    @Nonnull
    public Lock writeLock() {
        return NO_OP_LOCK;
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy