jdk/src/share/classes/sun/management/Sensor.java
/**
* Returns the total number of times that this sensor has been triggered.
*
* @return the total number of times that this sensor has been triggered.
*/
public long getCount() {
{- -------------------------------------------
(1) count フィールドの値をリターンするだけ.
---------------------------------------- -}
synchronized (lock) {
return count;
}
}
This document is available under the GNU GENERAL PUBLIC LICENSE Version 2.