📄 hellombean.java
字号:
/* HelloMBean.java - MBean interface describing the management operations and attributes for the Hello World MBean. In this case there are two operations, "sayHello" and "add", and two attributes, "Name" and "CacheSize". */package com.example.mbeans;public interface HelloMBean { // operations public void sayHello(); public int add(int x, int y); // attributes // a read-only attribute called Name of type String public String getName(); // a read-write attribute called CacheSize of type int public int getCacheSize(); public void setCacheSize(int size);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -