public class CommaSeparatedConverter extends Object
| Constructor and Description |
|---|
CommaSeparatedConverter() |
| Modifier and Type | Method and Description |
|---|---|
static <T> Collection<T> |
convertCommaSeparatedInput(String input,
Class<? extends Collection> collectionType)
Converts a comma-separated string into a collection of the specified type.
|
static void |
main(String[] args) |
public static void main(String[] args)
public static <T> Collection<T> convertCommaSeparatedInput(String input, Class<? extends Collection> collectionType)
input - The comma-separated input string.collectionType - The type of collection to create (e.g., LinkedHashSet.class, ArrayList.class).Copyright © 2026. All rights reserved.