src/share/classes/sun/jvmstat/perfdata/monitor/MonitorStatus.java
Print this page
@@ -24,10 +24,11 @@
*/
package sun.jvmstat.perfdata.monitor;
import java.util.List;
+import sun.jvmstat.monitor.Monitor;
/**
* Immutable class containing the list of inserted and deleted
* monitors over an arbitrary time period.
*
@@ -37,41 +38,41 @@
public class MonitorStatus {
/**
* The list of Monitors inserted since the last query.
*/
- protected List inserted;
+ protected List<Monitor> inserted;
/**
* The list of Monitors removed since the last query.
*/
- protected List removed;
+ protected List<Monitor> removed;
/**
* Create a MonitorStatus instance.
*
* @param inserted the list of Monitors inserted
* @param removed the list of Monitors removed
*/
- public MonitorStatus(List inserted, List removed) {
+ public MonitorStatus(List<Monitor> inserted, List<Monitor> removed) {
this.inserted = inserted;
this.removed = removed;
}
/**
* Get the list of Monitors inserted since the last query.
*
* @return List - the List of Monitor objects inserted or an empty List.
*/
- public List getInserted() {
+ public List<Monitor> getInserted() {
return inserted;
}
/**
* Get the list of Monitors removed since the last query.
*
* @return List - the List of Monitor objects removed or an empty List.
*/
- public List getRemoved() {
+ public List<Monitor> getRemoved() {
return removed;
}
}