Comments (1)
业务参数自动装箱、拆箱基础类型-long
使用示例,下面两个方法是等价的。
@ActionController(6)
public class LongAction {
@ActionMethod(20)
public long long2long(long value) {
return value + 1;
}
@ActionMethod(21)
public LongValue longValue2longValue(LongValue longValue) {
LongValue newLongValue = new LongValue();
newLongValue.value = longValue.value + 1;
return newLongValue;
}
}
long 类型在 action 方法中的参数与返回值还可以使用 List 类型,下面两个方法也是等价的。
@ActionController(6)
public class LongAction {
@ActionMethod(22)
public List<Long> longList2longList(List<Long> longList) {
List<Long> list = new ArrayList<>();
list.add(1L);
list.add(2L);
return list;
}
@ActionMethod(23)
public LongValueList LongValueList2longValueList(LongValueList longValueList) {
List<Long> list = new ArrayList<>();
list.add(1L);
list.add(2L);
LongValueList newLongValueList = new LongValueList();
newLongValueList.values = list;
return newLongValueList;
}
}
from iogame.
Related Issues (20)
- 获取所有活跃用户 HOT 4
- 获取活跃机器 HOT 3
- 客户端接收碎片协议数据结果不正确 HOT 8
- 游戏对外服与游戏网关的断线容错机制 HOT 1
- 本地启动逻辑服务摘除 ActionMethod 注解的方法都流量 HOT 2
- 多服多进程项目部署问题 HOT 7
- ExternalTopic.channelRead0(SocketRequestBrokerHandler.java:66) Cannot invoke "com.iohao.game.bolt.broker.core.client.BrokerClientItem.oneway(Object)" because "nextClient" is null HOT 7
- 升级到21.13后,EventBusSubscriber 中调用 invokeModuleMessage 出现超时 HOT 2
- 多次调用UserIdSettingKit.settingUserId,会出现逻辑服请求网关服超时的情况 HOT 10
- 多个ActionMethodInOut执行顺序问题 HOT 8
- [业务框架-插件管理] InOutManager 提供扩展点 HOT 1
- 将项目打包成 fat jar 并启动,框架会无法识别 action 所在位置的行数 HOT 1
- List<枚举>要求 must has default constructor method with no parameters HOT 3
- 分布式事件总线订阅者是否跟用户绑定的逻辑服有关 HOT 2
- 客户端发送消息,逻辑服收到消息顺序问题 HOT 6
- 增加 UserProcessor 线程执行器的选择策略扩展 HOT 1
- 在接收到客户端请求时protobuf报错 HOT 4
- 文档生成框架错误码的问题 HOT 3
- 对外服和逻辑服启动时网关连接数量问题 HOT 3
- 断线重连绑定问题 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from iogame.