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
主要解决两个问题
类似的 https://www.yuque.com/iohao/game/ieimzn
The text was updated successfully, but these errors were encountered:
业务参数自动装箱、拆箱基础类型-int
使用示例,下面两个方法是等价的。
@ActionController(6) public class IntAction { @ActionMethod(10) public int int2int(int value) { return value + 1; } @ActionMethod(11) public IntValue intValue2intValue(IntValue intValue) { IntValue newIntValue = new IntValue(); newIntValue.value = intValue.value + 1; return newIntValue; } }
int 类型在 action 方法中的参数与返回值还可以使用 List 类型,下面两个方法也是等价的。
@ActionController(6) public class IntAction { @ActionMethod(12) public List<Integer> intList2intList(List<Integer> intList) { List<Integer> list = new ArrayList<>(); list.add(1); list.add(2); return list; } @ActionMethod(13) public IntValueList intValueList2intValueList(IntValueList intValueList) { List<Integer> list = new ArrayList<>(); list.add(1); list.add(2); IntValueList newIntValueList = new IntValueList(); newIntValueList.values = list; return newIntValueList; } }
Sorry, something went wrong.
No branches or pull requests
主要解决两个问题
类似的 https://www.yuque.com/iohao/game/ieimzn
The text was updated successfully, but these errors were encountered: