We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
根据一段含有源对象(a)/目标对象(b)的 b.setXxx(a.getXxx()) 方法代码生成所有 set 方法以快速实现对象转换
public void usage05() { // 用法5, 将 src 的数据赋值给 dest, 常用于两个不同类直接进行 convert(需字段名称相同), 通过 postfix Foo src = new Foo(); Foo dest = new Foo(); // 取消下面的注释, 光标位于 convert 后面, 按下 Tab 键 // dest.setTestInt(src.getTestInt());.convert // 即可得到下面结果 dest.setTestInt(src.getTestInt()); dest.setTestLong(src.getTestLong()); dest.setTestFloat(src.getTestFloat()); dest.setTestDouble(src.getTestDouble()); dest.setTestBoolean(src.getTestBoolean()); }
根据一个入参为源对象(a),返回值为目标对象(b)的方法声明,生成对象转换方法
public Foo usage09(Foo src) { // 用法9 通过在方法名称上触发 Show Context Actions, 快捷键(如 Alt + Enter 或右键菜单选择) // 可看到 Generate Convert,选中后生成下面注释里的内容(不包含 return null;) // Foo foo = new Foo(); // foo.setTestInt(src.getTestInt()); // foo.setTestLong(src.getTestLong()); // foo.setTestFloat(src.getTestFloat()); // foo.setTestDouble(src.getTestDouble()); // foo.setTestBoolean(src.getTestBoolean()); // return foo; return null; }
The text was updated successfully, but these errors were encountered:
No branches or pull requests
根据一段含有源对象(a)/目标对象(b)的 b.setXxx(a.getXxx()) 方法代码生成所有 set 方法以快速实现对象转换
根据一个入参为源对象(a),返回值为目标对象(b)的方法声明,生成对象转换方法
The text was updated successfully, but these errors were encountered: