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

Method toString

src/main/java/com/l1yp/base/RedisKey.java:91–111  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

89 private static final char COLON = ':';
90
91 @Override
92 public String toString() {
93 if (cacheKey != null){
94 return cacheKey;
95 }
96 if (args == null || args.isEmpty()){
97 return cacheKey = prefix;
98 }
99
100 StringBuilder sb = new StringBuilder(64);
101 sb.append(prefix);
102 if (args == null){
103 return cacheKey = sb.toString();
104 }
105 for (int i = 0; i < args.size(); i++) {
106 sb.append(COLON);
107 Object arg = args.get(i);
108 sb.append(arg);
109 }
110 return cacheKey = sb.toString();
111 }
112
113 @Override
114 public int hashCode(){

Callers 15

hashCodeMethod · 0.95
equalsMethod · 0.95
readSqlMethod · 0.80
handleMethod · 0.80
evictFieldsCacheMethod · 0.80
pageModelingInstanceMethod · 0.80
buildPermissionSQLMethod · 0.80
getPageByIdMethod · 0.80
completeTaskMethod · 0.80
addCommentMethod · 0.80

Calls 1

getMethod · 0.45

Tested by

no test coverage detected