MCPcopy Create free account
hub / github.com/L1yp/van-app / arg

Method arg

src/main/java/com/l1yp/base/RedisKey.java:52–65  ·  view source on GitHub ↗

拼接一个参数 @param arg 要拼接的参数

(Object arg)

Source from the content-addressed store, hash-verified

50 * @param arg 要拼接的参数
51 */
52 public RedisKey arg(Object arg) {
53 if (arg == null){
54 throw new IllegalArgumentException("the arg must not be null");
55 }
56 if (args == null) {
57 args = new ArrayList<>(4);
58 }
59 if (arg instanceof String) {
60 args.add((String) arg);
61 }else {
62 args.add(String.valueOf(arg));
63 }
64 return this;
65 }
66
67 public Class<?> getValType() {
68 return valType;

Callers

nothing calls this directly

Calls 1

addMethod · 0.65

Tested by

no test coverage detected