docs: added javadoc

This commit is contained in:
zihluwang
2025-03-23 15:56:45 +08:00
parent 1381203719
commit 1a29a4c85b
2 changed files with 16 additions and 0 deletions
@@ -28,6 +28,16 @@ import java.util.List;
*/
public final class ListUtil {
/**
* Private constructor to prevent instantiation of this utility class.
* <p>
* This class provides static methods for list manipulation and is not intended to be
* instantiated. The private constructor ensures that no instances can be created, enforcing
* the utility nature of the class.
*/
private ListUtil() {
}
/**
* Splits a given List into a List of sub lists, where each sublist contains at most
* {@code maxSize} elements. The original list is not modified, and new sub lists are created