Files
mdm/src/main/java/com/midm/model/GroupByResult.java
T
rick 10aa1829f5 fix: repair decompiled sources and add exhaustive documentation
- restore generic signatures, scoped variables and missing code from original bytecode
- remove decompiler artifacts and document classes, methods, fields and packages
- restore resources, add Batik/BouncyCastle dependencies and build/runtime docs
2026-11-16 17:28:23 +08:00

74 lines
1.5 KiB
Java
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
package com.midm.model;
/**
* 【Java 类型】{@code GroupByResult}
*
* 类职责:
* <ul>
* <li>提供该包内的可复用能力。</li>
* <li>通过字段/依赖注入持有运行期状态,字段含义见下方“核心字段”。</li>
* </ul>
*
* 核心字段(按声明顺序):
* <ul>
* <li>{@code groups}(String[]):分组列表</li>
* <li>{@code count}(int):统计</li>
* </ul>
*
* 协作对象:{@code String[]}。
*
* 学习提示:先看类注释和 public 方法,再结合调用方理解它在整体流程中的位置。
*/
public class GroupByResult {
/**
* 分组列表。
*/
private String[] groups;
/**
* 统计。
*/
private int count;
/**
* 获取 {@code count}。
* @return 数量/长度
*/
public int getCount() {
return this.count;
}
/**
* 设置 {@code count}。
*
* @param count 参数 {@code count}({@code int})
*/
public void setCount(int count) {
this.count = count;
}
/**
* 获取 {@code group}。
* @return 字符串结果
*/
public String getGroup() {
return this.groups.length > 0 ? this.groups[0] : null;
}
/**
* 获取 {@code groups}。
* @return 字段/派生属性 {@code groups} 的值
*/
public String[] getGroups() {
return this.groups;
}
/**
* 设置 {@code groups}。
*
* @param groups 参数 {@code groups}({@code String[]})
*/
public void setGroups(String[] groups) {
this.groups = groups;
}
}