Added EnumUtils
This commit is contained in:
parent
a7a3e4b990
commit
31ff4cf95b
@ -0,0 +1,14 @@
|
||||
package ru.dragonestia.picker.api.impl.util;
|
||||
|
||||
import org.jetbrains.annotations.NotNull;
|
||||
|
||||
import java.util.Set;
|
||||
|
||||
public class EnumUtils {
|
||||
|
||||
private EnumUtils() {}
|
||||
|
||||
public static @NotNull String enumSetToString(@NotNull Set<? extends Enum<?>> set) {
|
||||
return String.join(",", set.stream().map(Enum::toString).toList());
|
||||
}
|
||||
}
|
||||
Loading…
x
Reference in New Issue
Block a user