/** * Indicates whether the current Thread has a monitor lock on the specified * object. * * @param object the object to test for the monitor lock * @return true if the current thread has a monitor lock on the specified * object; false otherwise */ public static boolean holdsLock(Object object) { return internalHoldsLock(object); } private static native boolean internalHoldsLock(Object object);
/** * Indicates whether the current Thread has a monitor lock on the specified * object. * * @param object the object to test for the monitor lock * @return true if the current thread has a monitor lock on the specified * object; false otherwise */ public static boolean holdsLock(Object object) { return internalHoldsLock(object); } private static native boolean internalHoldsLock(Object object);
/** * Indicates whether the current Thread has a monitor lock on the specified * object. * * @param object the object to test for the monitor lock * @return true if the current thread has a monitor lock on the specified * object; false otherwise */ public static boolean holdsLock(Object object) { return internalHoldsLock(object); } private static native boolean internalHoldsLock(Object object);
/** * Indicates whether the current Thread has a monitor lock on the specified * object. * * @param object the object to test for the monitor lock * @return true if the current thread has a monitor lock on the specified * object; false otherwise */ public static boolean holdsLock(Object object) { return internalHoldsLock(object); } private static native boolean internalHoldsLock(Object object);
/** * Indicates whether the current Thread has a monitor lock on the specified * object. * * @param object the object to test for the monitor lock * @return true if the current thread has a monitor lock on the specified * object; false otherwise */ public static boolean holdsLock(Object object) { return internalHoldsLock(object); } private static native boolean internalHoldsLock(Object object);
/** * Indicates whether the current Thread has a monitor lock on the specified * object. * * @param object the object to test for the monitor lock * @return true if the current thread has a monitor lock on the specified * object; false otherwise */ public static boolean holdsLock(Object object) { return internalHoldsLock(object); } private static native boolean internalHoldsLock(Object object);
/** * Indicates whether the current Thread has a monitor lock on the specified * object. * * @param object the object to test for the monitor lock * @return true if the current thread has a monitor lock on the specified * object; false otherwise */ public static boolean holdsLock(Object object) { return internalHoldsLock(object); } private static native boolean internalHoldsLock(Object object);