lockable.java

来自「一个用java写的地震分析软件(无源码)-used to write a sei」· Java 代码 · 共 31 行

JAVA
31
字号
package org.trinet.jasi;

/**
 * Lockable.java
 *
 *
 * Created: Tue Aug 15 16:43:00 2000
 *
 * @author Doug Given
 * @version
 */

public interface Lockable  {
    
    /** Lock this object, returns true on success, false on failure.
    * If locked, information on the current lock holder is in the data members. */
    public boolean lock();

    /** Release the lock on this object. Returns true even if the lock was not held
    * in the first place. */
    public boolean unlock();

    /** Returns true if this object is locked by anyone, the caller included. */
    public boolean isLocked();

    /** Returns true if this object is locked by the caller. */
    public boolean lockIsMine();

    
} // Lockable

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?