Comments (1)
业务参数自动装箱、拆箱基础类型-boolean
使用示例,下面两个方法是等价的。
@ActionController(6)
public class BoolAction {
@ActionMethod(40)
public boolean bool2bool(boolean boolValue) {
return boolValue;
}
@ActionMethod(41)
public BoolValue boolValue2boolValue(BoolValue boolValue) {
BoolValue newBoolValue = new BoolValue();
newBoolValue.value = boolValue.value;
return newBoolValue;
}
}
boolean 类型在 action 方法中的参数与返回值还可以使用 List 类型,下面两个方法也是等价的。
@ActionController(6)
public class BoolAction {
@ActionMethod(42)
public List<Boolean> boolList2boolList(List<Boolean> booleanList) {
List<Boolean> list = new ArrayList<>();
list.add(true);
list.add(false);
return list;
}
@ActionMethod(43)
public BoolValueList boolValueList2boolValueList(BoolValueList boolValueList) {
List<Boolean> list = new ArrayList<>();
list.add(true);
list.add(false);
BoolValueList newBoolValueList = new BoolValueList();
newBoolValueList.values = list;
return newBoolValueList;
}
}
from iogame.
Related Issues (20)
- 游戏对外服与游戏网关的断线容错机制 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
- 在消息密集且网关集群情况下,关闭其中一个网关,导致消息丢失 HOT 1
- 网关转发失败没看到重试 HOT 5
- 多进程多机器启动 HOT 4
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.