public class AnnoyingUtility
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static @NotNull java.lang.String |
formatNumber(@NotNull java.lang.Number value,
@Nullable java.lang.String pattern)
Formats a
Double value using the given pattern |
static @NotNull java.util.Set<java.lang.String> |
getEnumNames(@NotNull java.lang.Class<? extends java.lang.Enum<?>> enumClass)
Gets a
Set of all the enum's value's names |
static @NotNull java.util.Set<java.lang.String> |
getFileNames(@NotNull AnnoyingPlugin plugin,
@NotNull java.lang.String path)
Gets a
Set of all YML file names in a folder. |
static @NotNull java.lang.String |
repeat(@NotNull java.lang.CharSequence charSequence,
int amount)
Repeats a
CharSequence a given amount of times |
@NotNull
public static @NotNull java.lang.String repeat(@NotNull
@NotNull java.lang.CharSequence charSequence,
int amount)
CharSequence a given amount of timescharSequence - the CharSequence to repeatamount - the amount of times to repeat the CharSequenceCharSequence@NotNull
public static @NotNull java.lang.String formatNumber(@NotNull
@NotNull java.lang.Number value,
@Nullable
@Nullable java.lang.String pattern)
Double value using the given patternvalue - the Number to formatpattern - the pattern to use@NotNull
public static @NotNull java.util.Set<java.lang.String> getEnumNames(@NotNull
@NotNull java.lang.Class<? extends java.lang.Enum<?>> enumClass)
Set of all the enum's value's namesenumClass - the enum class to get the names fromSet of the enum's value's names@NotNull
public static @NotNull java.util.Set<java.lang.String> getFileNames(@NotNull
@NotNull AnnoyingPlugin plugin,
@NotNull
@NotNull java.lang.String path)
Set of all YML file names in a folder. If the path is not a folder, an empty Set is returnedplugin - the AnnoyingPlugin to get the folder frompath - the path to the folderSet all YML file names in the folder