MCPcopy Create free account
hub / github.com/afkT/DevUtils / getCount

Method getCount

lib/DevApp/src/main/java/dev/utils/common/MapUtils.java:154–161  ·  view source on GitHub ↗

获取 Map 数组长度总和 @param maps Map[] @return Map 数组长度总和

(final Map<?, ?>... maps)

Source from the content-addressed store, hash-verified

152 * @return Map 数组长度总和
153 */
154 public static int getCount(final Map<?, ?>... maps) {
155 if (maps == null) return 0;
156 int count = 0;
157 for (Map<?, ?> map : maps) {
158 count += length(map);
159 }
160 return count;
161 }
162
163 // ==========
164 // = 数据获取 =

Callers

nothing calls this directly

Calls 1

lengthMethod · 0.95

Tested by

no test coverage detected